.booking-contact-bubble {
  position: fixed;
  z-index: 85;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  max-width: calc(100vw - 36px);
  color: #152b4b;
  font: 400 15px/1.45 "Gabarito", "DM Sans", system-ui, sans-serif;
}
.booking-contact-bubble > summary {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 17px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #146c43;
  color: #fff;
  box-shadow: 0 5px 22px #152b4b26;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}
.booking-contact-bubble > summary::-webkit-details-marker { display: none; }
.booking-contact-bubble svg { width: 24px; height: 24px; flex: 0 0 24px; }
.booking-contact-bubble[open] > summary { display: none; }
.booking-contact-panel {
  box-sizing: border-box;
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(320px, calc(100vw - 36px));
  padding: 20px;
  border: 1px solid #d5dce5;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 32px #152b4b26;
}
.booking-contact-bubble[open] > .booking-contact-panel {
  position: relative;
  bottom: auto;
}
.booking-contact-panel > strong { display: block; padding-right: 26px; font-size: 22px; font-weight: 900; }
.booking-contact-panel > p { margin: 6px 0 16px; }
.booking-contact-panel > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  box-sizing: border-box;
  padding: 9px 12px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
}
.booking-contact-call { background: #152b4b; color: #fff; }
.booking-contact-whatsapp { margin-bottom: 8px; border: 1px solid #146c43; color: #fff; background: #146c43; }
.booking-contact-bubble > summary:hover { background: #105735; }
.booking-contact-bubble a:hover { text-decoration: underline; text-underline-offset: 3px; }
.booking-contact-bubble summary:focus-visible,
.booking-contact-bubble a:focus-visible { outline: 3px solid #ffad12; outline-offset: 4px; }
/* Keep the booking calendar usable when another fixed interface is open. */
body.nav-open .booking-contact-bubble,
body:has(.escape-consent:not([hidden])) .booking-contact-bubble { visibility: hidden; }
@media (max-width: 600px) {
  .booking-contact-bubble { right: max(12px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
  .booking-contact-bubble > summary { min-height: 44px; gap: 7px; padding: 9px 12px; font-size: 13px; }
}
@media print { .booking-contact-bubble { display: none; } }

.booking-contact-close {
  position: absolute; top: 7px; right: 7px; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #152b4b; font: 400 28px/1 system-ui; cursor: pointer;
}
.booking-contact-close:hover { background: #fff0d6; }
.booking-contact-close:focus-visible { outline: 3px solid #ffad12; outline-offset: 1px; }
.booking-contact-panel { max-height: calc(100dvh - 100px); overflow-y: auto; }
.booking-contact-bubble.help-intro { animation: help-fade-in .65s ease-out both; }
body:has(.escape-consent:not([hidden])) .booking-contact-bubble.help-intro { animation-play-state: paused; }
@keyframes help-fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .booking-contact-bubble.help-intro { animation: none; }
}
@media (max-width: 600px) {
  .reservation-page .booking-contact-bubble { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .reservation-page .booking-contact-panel { max-height: calc(100dvh - 190px); }
  .booking-contact-bubble > summary { max-width: calc(100vw - 24px); font-size: 13px; }
  .booking-contact-panel {
    width: min(272px, calc(100vw - 24px));
    max-height: calc(100dvh - 40px);
    padding: 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.4;
  }
  .booking-contact-panel > strong { padding-right: 24px; font-size: 18px; }
  .booking-contact-panel > p { margin: 5px 0 12px; }
  .booking-contact-panel > a { min-height: 44px; gap: 6px; padding: 8px 10px; border-radius: 10px; font-size: 13px; }
  .booking-contact-bubble svg { width: 20px; height: 20px; flex-basis: 20px; }
  .booking-contact-whatsapp { margin-bottom: 6px; }
  .booking-contact-close { top: 0; right: 0; font-size: 23px; }
}

/* Shared contact controls own their colours, including visited/hover/focus links.
   Page-wide anchor rules must never recolour these dark buttons or their icons. */
:root .booking-contact-bubble > summary,
:root .booking-contact-bubble .booking-contact-panel > a {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
:root .booking-contact-bubble .booking-contact-panel > .booking-contact-whatsapp {
  background-color: #146c43;
}
:root .booking-contact-bubble .booking-contact-panel > .booking-contact-call {
  background-color: #152b4b;
}
