/* Ztax floating widgets: cookie consent (left) + Roberto chatbot (right) */
.ztx-w, .ztx-w * { box-sizing: border-box; }
.ztx-w {
  position: fixed;
  z-index: 9998;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #0b1c2c;
}

/* Bubbles */
.ztx-bubble {
  width: 48px; height: 48px; border-radius: 50%;
  background: #ffffff; border: none; padding: 0;
  box-shadow: 0 10px 30px rgba(11,28,44,.18), 0 2px 6px rgba(11,28,44,.10);
  cursor: pointer; position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
  display: grid; place-items: center;
}
.ztx-bubble:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(11,28,44,.22), 0 3px 8px rgba(11,28,44,.12); }
.ztx-bubble:focus-visible { outline: 2px solid #00015A; outline-offset: 3px; }

/* Cookie bubble (left) */
.ztx-cookie { left: 20px; bottom: 20px; }
.ztx-cookie .ztx-bubble { background: #00015A; }
.ztx-cookie .ztx-bubble svg { width: 22px; height: 22px; color: #EEEEF7; }
.ztx-ring {
  position: absolute; inset: -5px; border-radius: 50%;
  border: 1.5px dashed rgba(0,1,90,.55);
  animation: ztx-spin 14s linear infinite;
  pointer-events: none;
}
@keyframes ztx-spin { to { transform: rotate(360deg); } }

/* =========================================================
   Mobile navigation (hamburger + slide-in drawer)
   Injected by site-widgets.js. Hidden on desktop.
   ========================================================= */
.ztx-burger {
  display: none;
  width: 44px; height: 44px; border-radius: 12px;
  background: transparent; border: 1px solid rgba(0,2,128,.14);
  color: #00015A; padding: 0; cursor: pointer;
  align-items: center; justify-content: center;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.ztx-burger:hover { background: rgba(0,2,128,.05); }
.ztx-burger:active { transform: scale(.96); }
.ztx-burger:focus-visible { outline: 2px solid #00015A; outline-offset: 2px; }
.ztx-burger svg { width: 22px; height: 22px; display: block; }
.ztx-burger.is-open { background: #00015A; border-color: #00015A; color: #ffffff; }

.ztx-mnav {
  position: fixed; inset: 0; z-index: 9997;
  pointer-events: none;
  font-family: "Apple Garamond", ui-serif, Georgia, serif;
}
.ztx-mnav__scrim {
  position: absolute; inset: 0;
  background: rgba(0, 1, 90, 0);
  transition: background .3s ease;
}
.ztx-mnav__inner {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(92vw, 380px);
  background: #FAFAF7;
  color: #00015A;
  padding: 84px 28px 32px;
  display: flex; flex-direction: column; gap: 22px;
  transform: translateX(105%);
  transition: transform .38s cubic-bezier(.22,.61,.36,1);
  box-shadow: -20px 0 60px rgba(0,1,90,.18);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ztx-mnav.is-open { pointer-events: auto; }
.ztx-mnav.is-open .ztx-mnav__scrim { background: rgba(0, 1, 90, .38); }
.ztx-mnav.is-open .ztx-mnav__inner { transform: translateX(0); }

.ztx-mnav__links {
  display: flex; flex-direction: column;
  border-top: 1px solid rgba(0,2,128,.12);
}
.ztx-mnav__links a {
  font-family: "Apple Garamond", ui-serif, Georgia, serif;
  font-size: 22px; line-height: 1.2;
  color: #00015A; text-decoration: none;
  padding: 18px 2px;
  border-bottom: 1px solid rgba(0,2,128,.12);
  display: flex; align-items: center; justify-content: space-between;
  transition: color .18s ease, padding-left .18s ease;
}
.ztx-mnav__links a::after {
  content: "→"; font-size: 18px; opacity: .35;
  transition: transform .18s ease, opacity .18s ease;
}
.ztx-mnav__links a:hover,
.ztx-mnav__links a:focus-visible { padding-left: 6px; outline: none; }
.ztx-mnav__links a:hover::after,
.ztx-mnav__links a:focus-visible::after { transform: translateX(4px); opacity: .9; }
.ztx-mnav__links a.active { font-style: italic; }
.ztx-mnav__links a.active::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #A7D08D; margin-right: 10px;
}

.ztx-mnav .zt-btn,
.ztx-mnav .zl-btn {
  width: 100%; text-align: center;
  padding: 14px 22px; border-radius: 999px;
  background: #00015A; color: #FFFFFF;
  font-size: 16px; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}

.ztx-mnav__contact {
  display: flex; flex-direction: column; gap: 6px;
  border-top: 1px solid rgba(0,2,128,.12);
  padding-top: 18px; margin-top: auto;
}
.ztx-mnav__contact a {
  color: #00015A; text-decoration: none; font-size: 15px;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  letter-spacing: .01em;
}
.ztx-mnav__contact a:hover { text-decoration: underline; }

.ztx-mnav__meta {
  margin: 0;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: #8C8A83;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
}

@media (max-width: 900px) {
  .ztx-burger { display: inline-flex; }
}

/* Cookie panel */
.ztx-cookie-panel {
  position: absolute; left: 0; bottom: 64px;
  width: 320px; max-width: calc(100vw - 40px);
  background: #ffffff; color: #0b1c2c;
  border-radius: 14px; padding: 16px 16px 14px;
  box-shadow: 0 20px 50px rgba(11,28,44,.22), 0 4px 12px rgba(11,28,44,.10);
  border: 1px solid rgba(11,28,44,.08);
  transform: translateY(6px) scale(.98); opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.ztx-cookie.is-open .ztx-cookie-panel { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.ztx-cookie-panel h4 { margin: 0 0 6px; font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.ztx-cookie-panel p { margin: 0 0 12px; font-size: 13px; line-height: 1.45; color: #3a4a5c; }
.ztx-cookie-panel a { color: #00015A; text-decoration: underline; }
.ztx-cookie-actions { display: flex; gap: 8px; }
.ztx-btn {
  flex: 1; border: none; cursor: pointer; padding: 9px 12px;
  border-radius: 8px; font-size: 13px; font-weight: 600; letter-spacing: .01em;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.ztx-btn--primary { background: #00015A; color: #ffffff; }
.ztx-btn--primary:hover { background: #000280; }
.ztx-btn--ghost { background: transparent; color: #00015A; border: 1px solid rgba(0,1,90,.35); }
.ztx-btn--ghost:hover { background: rgba(0,1,90,.06); }

/* Chatbot bubble (right) */
.ztx-chat { right: 20px; bottom: 20px; }
.ztx-chat .ztx-bubble { overflow: hidden; background: #0b1c2c; }
.ztx-chat .ztx-bubble img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.ztx-chat .ztx-ring { border-color: rgba(11,107,58,.55); animation-duration: 10s; }
.ztx-chat-pill {
  position: absolute; right: 74px; bottom: 12px; white-space: nowrap;
  background: #ffffff; padding: 8px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: #0b1c2c;
  box-shadow: 0 8px 20px rgba(11,28,44,.15);
  border: 1px solid rgba(11,28,44,.08);
  transition: opacity .2s ease, transform .2s ease;
}
.ztx-chat.is-open .ztx-chat-pill { opacity: 0; pointer-events: none; }

/* Chat panel */
.ztx-chat-panel {
  position: absolute; right: 0; bottom: 78px;
  width: 360px; height: 520px; max-width: calc(100vw - 40px); max-height: calc(100vh - 120px);
  background: #ffffff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(11,28,44,.28), 0 6px 14px rgba(11,28,44,.10);
  border: 1px solid rgba(11,28,44,.08);
  display: flex; flex-direction: column;
  transform: translateY(10px) scale(.98); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.ztx-chat.is-open .ztx-chat-panel { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.ztx-chat-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid rgba(11,28,44,.08);
  background: linear-gradient(180deg, #0f3d2e, #0b2a20); color: #f5f7f3;
}
.ztx-chat-header img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.ztx-chat-header-txt { flex: 1; min-width: 0; }
.ztx-chat-header-txt strong { display: block; font-size: 13.5px; font-weight: 700; }
.ztx-chat-header-txt span { display: block; font-size: 11.5px; opacity: .8; }
.ztx-chat-close {
  background: transparent; border: none; color: #f5f7f3; cursor: pointer;
  width: 32px; height: 32px; border-radius: 8px; font-size: 18px; line-height: 1;
}
.ztx-chat-close:hover { background: rgba(255,255,255,.10); }

.ztx-chat-body { flex: 1; overflow-y: auto; padding: 14px; background: #fbfbf7; }
.ztx-msg { display: flex; margin-bottom: 10px; }
.ztx-msg-bubble {
  max-width: 82%; padding: 9px 12px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word;
}
.ztx-msg--assistant .ztx-msg-bubble { background: #ffffff; color: #0b1c2c; border: 1px solid rgba(11,28,44,.08); border-bottom-left-radius: 4px; }
.ztx-msg--user { justify-content: flex-end; }
.ztx-msg--user .ztx-msg-bubble { background: #0f3d2e; color: #ffffff; border-bottom-right-radius: 4px; }
.ztx-typing { display: inline-flex; gap: 4px; padding: 6px 2px; }
.ztx-typing i { width: 6px; height: 6px; border-radius: 50%; background: #0f3d2e; opacity: .35; animation: ztx-blink 1.2s infinite; }
.ztx-typing i:nth-child(2) { animation-delay: .15s; }
.ztx-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ztx-blink { 0%,80%,100% { opacity: .25; } 40% { opacity: 1; } }

.ztx-chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid rgba(11,28,44,.08); background: #ffffff; }
.ztx-chat-form textarea {
  flex: 1; resize: none; border: 1px solid rgba(11,28,44,.15); border-radius: 10px;
  padding: 9px 11px; font: inherit; font-size: 13.5px; min-height: 38px; max-height: 120px;
  outline: none; color: #0b1c2c; background: #fbfbf7;
}
.ztx-chat-form textarea:focus { border-color: #0f3d2e; background: #ffffff; }
.ztx-chat-send {
  border: none; background: #0f3d2e; color: #ffffff; border-radius: 10px;
  padding: 0 14px; cursor: pointer; font-weight: 600; font-size: 13.5px;
}
.ztx-chat-send:disabled { opacity: .5; cursor: not-allowed; }
.ztx-chat-hint { padding: 0 12px 8px; font-size: 10.5px; color: #6b7a8a; text-align: center; background: #ffffff; }

@media (max-width: 480px) {
  .ztx-chat-panel { width: calc(100vw - 32px); height: calc(100vh - 140px); right: -4px; }
  .ztx-cookie-panel { width: calc(100vw - 40px); }
  .ztx-chat-pill { display: none; }
}
/* --- Attribution bar (The Future Law Studio) --- */
.ztx-credit {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap; text-align: center;
}
.ztx-credit__link {
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none; color: rgba(255,255,255,0.5);
  transition: color .25s ease;
}
.ztx-credit__label {
  text-transform: uppercase; font-size: 10px; letter-spacing: .14em;
  color: inherit;
}
.ztx-credit__sep {
  width: 1px; height: 20px; background: currentColor; opacity: .35;
}
.ztx-credit__logo {
  height: 28px; width: auto; display: block;
  opacity: .6; transition: opacity .25s ease;
}
.ztx-credit__arrow {
  font-size: 13px; color: inherit;
  transition: transform .25s ease;
}
.ztx-credit__link:hover { color: rgba(255,255,255,0.95); }
.ztx-credit__link:hover .ztx-credit__logo { opacity: 1; }
.ztx-credit__link:hover .ztx-credit__arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .ztx-credit__link, .ztx-credit__logo, .ztx-credit__arrow { transition: none; }
  .ztx-credit__link:hover .ztx-credit__arrow { transform: none; }
}

/* ---- Consent categories -------------------------------------------- */
.ztx-cats { display: grid; gap: 8px; margin: 4px 0 12px; }
.ztx-cat {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 8px 10px; border: 1px solid rgba(0,1,90,.14); border-radius: 10px;
  cursor: pointer; background: rgba(0,1,90,.02);
}
.ztx-cat:hover { background: rgba(0,1,90,.05); }
.ztx-cat.is-locked { cursor: default; opacity: .8; }
.ztx-cat input { margin: 2px 0 0; accent-color: #00015A; width: 15px; height: 15px; flex: none; }
.ztx-cat__txt { display: block; }
.ztx-cat__txt strong { display: block; font-size: 12.5px; font-weight: 700; color: #0b1c2c; }
.ztx-cat__txt small { display: block; font-size: 11.5px; line-height: 1.4; color: #4a5a6c; margin-top: 2px; }
.ztx-cookie-actions { flex-wrap: wrap; }

/* ---- Contact form privacy consent ---------------------------------- */
.zt-form__consent {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 6px; font-family: var(--ztax-serif, Georgia, serif);
  font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.82); cursor: pointer;
}
.zt-form__consent input { margin: 3px 0 0; width: 16px; height: 16px; flex: none; accent-color: var(--accent, #0B6B3A); }
.zt-form__consent a { color: var(--accent, #0B6B3A); text-decoration: underline; }

/* ---- Cookie bubble while the sticky contact bar is open -------------- */
:root { --ztx-bar-h: 0px; }
.ztx-bar-open .ztx-cookie {
  bottom: calc((var(--ztx-bar-h) - 36px) / 2);
  transition: bottom .3s ease;
}
.ztx-bar-open .ztx-cookie .ztx-bubble {
  width: 36px; height: 36px;
  background: #A7D08D;
  box-shadow: 0 4px 14px rgba(0,2,128,.28);
}
.ztx-bar-open .ztx-cookie .ztx-bubble svg { width: 17px; height: 17px; color: #00015A; }
.ztx-bar-open .ztx-cookie .ztx-ring { border-color: rgba(167,208,141,.75); inset: -4px; }
.ztx-bar-open .ztx-cookie .ztx-cookie-panel { bottom: calc(var(--ztx-bar-h) + 14px); }

/* Mobile: keep the sticky-bar content clear of the cookie bubble */
@media (max-width: 640px) {
  .ztx-bar-open .ztx-cookie { left: 12px; }
  .ztx-bar-open .zl-stickybar__inner { padding-left: 52px !important; }
  .ztx-bar-open .zl-stickybar__phone { display: inline-block; }
  .ztx-bar-open .zl-stickybar__txt,
  .ztx-bar-open .zl-stickybar__actions { min-width: 0; }
}
