/* OTTANOWA smart header "Book Online" button (v3, installed 13 Nov 2026). Scoped to the header's blue top bar (template 90,
   container d889723). The bar's height, the clock/hours text and the existing sticky behaviour are not changed: the button is
   overlaid exactly where the Facebook/Instagram icons sit, and the two swap with a short coordinated cross-fade.
   Phones (max-width 767px, the site's Elementor mobile breakpoint): disabled - Prototype 4 floating tab is used there. */
.otn-hb-host { position: relative; }
.otn-hb { position: absolute; top: 50%; right: 0; transform: translateY(-50%); z-index: 3; display: flex; pointer-events: none; }
.otn-hb[data-align="left"] { right: auto; left: 0; }

/* Motion (v3): one coordinated, upward "hand-over". The leaving element starts at once with a soft accelerating curve; the
   arriving element starts 60 ms later with a long gentle deceleration, so both overlap and read as a single glide. Travel is
   kept short (8 / 10 px) so it feels settled rather than flashy. Scrolling up plays the exact mirror. Only opacity and
   transform are animated (compositor-only, no layout or paint of the bar). */
.otn-hb-host, .otn-hb {
  --otn-in-move: 380ms;  --otn-in-fade: 280ms;  --otn-in-delay: 60ms;   /* arriving */
  --otn-out-move: 240ms; --otn-out-fade: 180ms;                          /* leaving  */
  --otn-ease-in: cubic-bezier(.22, 1, .36, 1);     /* soft deceleration ("glide in") */
  --otn-ease-out: cubic-bezier(.55, 0, .9, .45);   /* gentle acceleration ("ease away") */
  --otn-fade: cubic-bezier(.4, 0, .2, 1);
}
.otn-hb__btn {
  position: relative; pointer-events: auto; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  background: #E87524; color: #FFFFFF !important; text-decoration: none !important;
  font: 600 15px/1 "Roboto Flex", system-ui, -apple-system, "Segoe UI", sans-serif;
  padding: 11px 20px; border-radius: 100px; box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
  backface-visibility: hidden;
  /* hidden: just below its final spot (it rises from the direction of the main header) */
  opacity: 0; visibility: hidden; transform: translate3d(0, 10px, 0);
  /* leaving */
  transition: opacity var(--otn-out-fade) var(--otn-fade), transform var(--otn-out-move) var(--otn-ease-out),
              visibility 0s linear var(--otn-out-move), background-color .2s ease;
}
.otn-hb__btn::after { content: ""; position: absolute; inset: -6px 0; } /* taller touch target without a taller bar; no sideways overhang (it caused 3px page overflow where the bar touches the viewport edge) */
.otn-hb-on .otn-hb__btn {
  opacity: 1; visibility: visible; transform: translate3d(0, 0, 0);
  /* arriving */
  transition: opacity var(--otn-in-fade) var(--otn-fade) var(--otn-in-delay), transform var(--otn-in-move) var(--otn-ease-in) var(--otn-in-delay),
              visibility 0s linear 0s, background-color .2s ease;
}
.otn-hb__btn:hover, .otn-hb__btn:focus-visible { background: #20252B; color: #FFFFFF !important; } /* same hover as the original button */
.otn-hb__btn:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.otn-hb--compact .otn-hb__btn { font-size: 13.5px; padding: 9px 14px; }

/* Layer promotion only while the feature is active (desktop/tablet), so phones pay nothing. */
.otn-hb-enabled .otn-hb__btn, .otn-hb-enabled .otn-hb-host .elementor-social-icons-wrapper { will-change: opacity, transform; }

/* Social icons: slide upward and fade out; on the way back they settle down into place. */
.otn-hb-host .elementor-social-icons-wrapper {
  backface-visibility: hidden; transform: translate3d(0, 0, 0);
  /* arriving (scrolling back up) */
  transition: opacity var(--otn-in-fade) var(--otn-fade) var(--otn-in-delay), transform var(--otn-in-move) var(--otn-ease-in) var(--otn-in-delay),
              visibility 0s linear 0s;
}
.otn-hb-on .otn-hb-host .elementor-social-icons-wrapper {
  opacity: 0; visibility: hidden; transform: translate3d(0, -8px, 0);
  /* leaving (scrolling down); becomes hidden at the end so its links cannot be reached */
  transition: opacity var(--otn-out-fade) var(--otn-fade), transform var(--otn-out-move) var(--otn-ease-out),
              visibility 0s linear var(--otn-out-move);
}

/* first state after page load / re-enable is applied without animation */
html body .otn-hb-instant .otn-hb .otn-hb__btn, html body .otn-hb-instant .otn-hb-host .elementor-social-icons-wrapper { transition-duration: 0s !important; transition-delay: 0s !important; }

@media (prefers-reduced-motion: reduce) {
  /* No movement at all, but keep a gentle, coordinated cross-fade (fades are fine for reduced-motion users).
     Elementor's frontend.css sets "html * { transition-duration:0s!important; transition-delay:0s!important }" here, which would
     make the swap pop instantly; these more specific rules restore the fade for these two elements only.
     Property order - button: opacity, transform, visibility, background-color; icons: opacity, transform, visibility. */
  .otn-hb__btn, .otn-hb-on .otn-hb__btn,
  .otn-hb-host .elementor-social-icons-wrapper, .otn-hb-on .otn-hb-host .elementor-social-icons-wrapper { transform: none !important; }
  html .otn-hb .otn-hb__btn { transition-duration: var(--otn-out-fade), 0s, 0s, .2s !important; transition-delay: 0s, 0s, var(--otn-out-fade), 0s !important; }
  html .otn-hb-on .otn-hb .otn-hb__btn { transition-duration: var(--otn-in-fade), 0s, 0s, .2s !important; transition-delay: var(--otn-in-delay), 0s, 0s, 0s !important; }
  html .otn-hb-host .elementor-social-icons-wrapper { transition-duration: var(--otn-in-fade), 0s, 0s !important; transition-delay: var(--otn-in-delay), 0s, 0s !important; }
  html .otn-hb-on .otn-hb-host .elementor-social-icons-wrapper { transition-duration: var(--otn-out-fade), 0s, 0s !important; transition-delay: 0s, 0s, var(--otn-out-fade) !important; }
}

/* Phones: feature fully off (belt and braces alongside the script) - the original responsive header is shown unchanged. */
@media (max-width: 767px) {
  .otn-hb { display: none !important; }
  .otn-hb-on .otn-hb-host .elementor-social-icons-wrapper { opacity: 1 !important; visibility: visible !important; transform: none !important; }
}
/* Tablet widths where the button does not fit beside the hours text: off as well. */
.otn-hb-noroom .otn-hb { display: none !important; }
@media print { .otn-hb { display: none !important; } }
