:root { --bt-guide-edge: clamp(12px, 2vw, 24px); }

.bt-guide-dock {
  position: fixed;
  z-index: 8;
  right: var(--bt-guide-edge);
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--bt-guide-edge));
  display: flex;
  border: 1px solid #d9bf8f90;
  border-radius: 14px;
  background: #3a0c16b0;
  box-shadow: 0 6px 16px #0003;
  color: var(--text);
}
.bt-guide-dock:hover, .bt-guide-dock:focus-within { border-color: var(--gold-hover); }
.bt-guide-trigger, .bt-guide-minimize {
  display: flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
}
.bt-guide-trigger {
  gap: 10px;
  min-height: 54px;
  padding: 3px 10px 3px 7px;
  border-radius: 13px;
  text-align: left;
  line-height: 1.2;
}
.bt-guide-trigger:hover, .bt-guide-minimize:hover { background: #ffffff14; }
.bt-guide-trigger img { width: 36px; height: 44px; object-fit: contain; opacity: .9; }
.bt-guide-trigger strong, .bt-guide-trigger small { display: block; }
.bt-guide-trigger strong { font-size: .94rem; }
.bt-guide-trigger small { margin-top: 4px; font-size: .78rem; }
.bt-guide-minimize {
  justify-content: center;
  width: 44px;
  padding: 0;
  border-left: 1px solid #d9bf8f52;
  border-radius: 0 13px 13px 0;
  color: var(--gold-hover);
}
.bt-guide-dock.is-compact {
  border-color: #70f0a8a8;
  border-radius: 50%;
  background: #0a7046cc;
  box-shadow: 0 0 12px #25d36663, 0 6px 16px #0003;
}
.bt-guide-dock.is-compact:is(:hover, :focus-within) { border-color: #baffd1; }
.bt-guide-dock.is-compact :is(.bt-guide-trigger-text, .bt-guide-minimize) { display: none; }
.bt-guide-dock.is-compact .bt-guide-trigger {
  position: relative;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding: 3px;
  border-radius: 50%;
}
.bt-guide-dock.is-compact .bt-guide-trigger img { width: 40px; height: 48px; }
.bt-guide-dock.is-compact .bt-guide-trigger::after {
  position: absolute;
  inset: 0;
  border: 1px solid #9effc4;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #25d36655, 0 0 16px #25d366a6;
  pointer-events: none;
  content: '';
  opacity: .28;
}
@media (prefers-reduced-motion: no-preference) {
  .bt-guide-dock.is-compact .bt-guide-trigger::after { animation: bt-guide-reminder 4s ease-in-out infinite; }
}
@keyframes bt-guide-reminder {
  0%, 65%, 100% { opacity: .28; transform: scale(1); }
  30% { opacity: .92; transform: scale(1.06); }
}
body:has(.bt-guide-dock:not([hidden])) .footer-base {
  padding-block-end: calc(68px + var(--bt-guide-edge) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 1200px) {
  body:has(.bt-guide-dock:not([hidden])) .footer-base {
    padding-inline-end: 225px;
    padding-block-end: 18px;
  }
  body:has(.bt-guide-dock.is-compact:not([hidden])) .footer-base { padding-inline-end: 68px; }
}

.bt-guide-panel {
  position: fixed;
  inset: auto var(--bt-guide-edge) calc(env(safe-area-inset-bottom, 0px) + var(--bt-guide-edge)) auto;
  width: min(530px, calc(100% - var(--bt-guide-edge) - var(--bt-guide-edge)));
  max-width: none;
  max-height: calc(100dvh - 2 * var(--bt-guide-edge) - env(safe-area-inset-bottom, 0px));
  margin: 0;
  padding: 0;
  overflow: hidden;
  color-scheme: light;
  color: #251d22;
  background: #fffefdf4;
  border: 1px solid #e1d5d9;
  border-radius: 17px;
  box-shadow: 0 20px 64px #130a1552;
  line-height: 1.55;
}
.bt-guide-panel::backdrop { background: #1a101626; }
.bt-guide-panel :focus-visible { outline-color: #79334b; }
.bt-guide-panel p { color: #5a4d53; }
.bt-guide-scroll {
  max-height: min(760px, calc(100dvh - 2 * var(--bt-guide-edge) - env(safe-area-inset-bottom, 0px) - 2px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 27px;
}
.bt-guide-close {
  position: absolute;
  z-index: 1;
  top: 6px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fffefd;
  color: #4a3941;
}
.bt-guide-close:hover { background: #f1e7eb; }
.bt-guide-heading {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding-right: 26px;
}
.bt-guide-heading img { width: 70px; height: 102px; object-fit: contain; }
.bt-guide-heading .bt-guide-eyebrow {
  margin-bottom: 8px;
  color: #622740;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.bt-guide-heading h2 { margin-bottom: 8px; font-size: clamp(1.5rem, 4vw, 2.05rem); }
.bt-guide-heading p:last-child { font-size: .96rem; }
.bt-guide-shortcuts, .bt-guide-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 17px;
}
.bt-guide-shortcuts a, .bt-guide-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: .87rem;
  font-weight: 650;
  text-decoration: none;
}
.bt-guide-shortcuts a { background: #f1e9ed; color: #53253b; }
.bt-guide-shortcuts a:hover { background: #e8d9e1; }
.bt-guide-contact { margin-top: 9px; }
.bt-guide-contact a { color: var(--burgundy); border: 1px solid #ddd0d5; }
.bt-guide-contact a:hover { background: #f7f1f3; border-color: #b794a3; }
.bt-guide-contact a svg { flex: none; }
.bt-guide-contact .bt-guide-whatsapp {
  border-color: #0a7046;
  background: #0a7046;
  color: #fff;
}
.bt-guide-contact .bt-guide-whatsapp:hover { border-color: #085536; background: #085536; }

.bt-guide-faq { margin-top: 23px; }
.bt-guide-faq h3 { margin-bottom: 10px; font-size: 1.19rem; }
.bt-guide-faq details { border-top: 1px solid #e4dade; }
.bt-guide-faq summary {
  min-height: 48px;
  padding: 12px 0;
  font-size: .93rem;
  font-weight: 650;
  cursor: pointer;
}
.bt-guide-faq summary::marker { color: #71344d; }
.bt-guide-faq details p { padding-bottom: 14px; font-size: .87rem; }
.bt-guide-faq a, .bt-guide-fallback a { color: #71344d; text-underline-offset: 3px; }
.bt-guide-handoff {
  margin-top: 15px;
  padding: 16px;
  border-radius: 8px;
  background: #f4eff1;
}
.bt-guide-handoff label { margin-bottom: 0; font-size: 1rem; font-weight: 650; }
.bt-guide-handoff textarea {
  margin-top: 8px;
  background: #fffefd;
  border-color: #baaab1;
  color: #251d22;
  resize: vertical;
}
.bt-guide-handoff textarea::placeholder { color: #6b5c63; }
.bt-guide-handoff .button {
  min-height: 44px;
  border-color: var(--burgundy);
  background: var(--burgundy);
  color: #fff;
  font-size: .9rem;
}
.bt-guide-handoff .button:hover { background: #532638; border-color: #532638; }
.bt-guide-handoff p { margin-top: 9px; font-size: .82rem; }

@media (max-width: 1270px) {
  body:has(#nav.open) .bt-guide-dock { visibility: hidden; }
}
@media (max-width: 520px) {
  .bt-guide-scroll { padding: 19px 16px; }
  .bt-guide-heading { grid-template-columns: 50px minmax(0, 1fr); gap: 12px; padding-right: 21px; }
  .bt-guide-heading img { width: 50px; height: 78px; }
  .bt-guide-shortcuts a, .bt-guide-contact a { padding-inline: 8px; font-size: .81rem; }
  .bt-guide-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.38fr) minmax(0, .9fr);
    gap: 6px;
  }
  .bt-guide-contact a {
    flex-direction: column;
    gap: 3px;
    min-height: 54px;
    padding: 6px 4px;
    text-align: center;
    line-height: 1.2;
  }
  .bt-guide-trigger { gap: 8px; }
}
