/* Booking on every page (inc/site.php; the user 26.11.2026).
   1. The header's VARAA opens two choices under it: the theme's own cream pill, twice. No box, no outline.
   2. The theme's round buttons that lead to a booking carry longer words ("Varaa ryhmälle 10+ hlöä"): on a phone they
      get narrower sides and slightly smaller letters, so the page does not grow sideways. */
.header__actions { position: relative; }
.ftr-book { position: absolute; top: calc(100% + 10px); left: 0; z-index: 5; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; pointer-events: none; }
.ftr-book a { display: block; padding: 16px 26px 13px; border-radius: 999px; background: #fff2e1; color: #3b001c; white-space: nowrap; text-decoration: none;
  font-family: var(--font-alt-body, sans-serif); font-size: 17px; font-weight: 500; letter-spacing: .02em; line-height: 1.1; text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28); opacity: 0; transform: translateY(-10px) scale(.96); transform-origin: 20% 0;
  transition: opacity .18s ease, transform .22s cubic-bezier(.2, .8, .2, 1); }
.ftr-book a + a { transition-delay: .05s; }
.ftr-book.is-open { pointer-events: auto; }
.ftr-book.is-open a { opacity: 1; transform: none; }
.header__nav-btn[aria-expanded="true"] { background: #3b001c; color: #fff2e1; }
@media (hover: hover) { .ftr-book a:hover { background: #fff; } .ftr-book a:focus-visible { outline: 3px solid #fff2e1; outline-offset: 2px; } }
@media (prefers-reduced-motion: reduce) { .ftr-book a { transition: none; transform: none; } }
@media (max-width: 360px) { .ftr-book a { font-size: 15.5px; padding: 15px 20px 12px; } }

/* The theme's columns and button rows size themselves to their longest button. With a booking button inside they
   stay within the screen, so a long word wraps inside the button instead of widening the page. */
:is(.two-column-section__col, .two-column-section__inner, .section__inner):has(a.round-button[href*="tableonline"], a.round-button[href*="ryhmavaraus"]) { min-width: 0; }
:is(.section__buttons, .two-column-section__buttons):has(a[href*="tableonline"], a[href*="ryhmavaraus"]) { max-width: 100%; grid-template-columns: minmax(0, auto); }
/* the booking buttons on a phone: narrower sides and slightly smaller letters than the theme's (its own rule is as
   specific as this one, hence the doubled class) */
@media (max-width: 480px) {
  a.round-button.round-button:is([href*="tableonline"], [href*="ryhmavaraus"], [href$="/ryhmille/"], [href$="/en/groups/"]) {
    padding-left: 20px !important; padding-right: 20px !important; font-size: 16px; max-width: 100%; box-sizing: border-box; text-align: center; line-height: 1.15; }
}
@media (max-width: 370px) {
  a.round-button.round-button:is([href*="tableonline"], [href*="ryhmavaraus"], [href$="/ryhmille/"], [href$="/en/groups/"]) {
    padding-left: 16px !important; padding-right: 16px !important; font-size: 15px; }
}
