/**
 * RSTQ Modern — mobile floating BOOK NOW (≤767px only)
 * Gold pill, fixed bottom-left, clears bottom-right chat widgets.
 * Hidden on desktop. Safe-area aware.
 */

.rstq-float-booknow {
  display: none;
}

@media only screen and (max-width: 767px) {
  .rstq-float-booknow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: fixed;
    left: max(12px, env(safe-area-inset-left, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 99990;
    box-sizing: border-box;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #e6ae48;
    color: #1a1f26 !important;
    font-family: Inter, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none !important;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.18);
    border: 0;
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    transform: translateY(12px);
    animation: rstq-float-book-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
  }

  .rstq-float-booknow:hover,
  .rstq-float-booknow:focus {
    background: #d4a03f;
    color: #1a1f26 !important;
    text-decoration: none !important;
    outline: none;
  }

  .rstq-float-booknow:focus-visible {
    box-shadow:
      0 0 0 3px rgba(30, 172, 199, 0.55),
      0 8px 24px rgba(0, 0, 0, 0.28);
  }

  .rstq-float-booknow__icon {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  /* Keep page content / CTA banner clear of the fixed control */
  body.rstq-has-float-booknow {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

@keyframes rstq-float-book-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media only screen and (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .rstq-float-booknow {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
