/* Bogat Sticky CTA — v1.2.1
   Mobile/tablet: full-width frosted-glass bar (Call + Book). Desktop (>=1024px): floating button bottom-right.
   Palette from theme: teal #518c97 (hover #3f7480), navy #062e3a. Square corners, Mont/Arial 16px. */

.bogat-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -44px; /* hangs below the viewport so the glass covers iOS Safari's collapsed-toolbar strip */
  z-index: 900; /* below theme popups (1000), above header (50) */
  transform: translateY(110%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .32s cubic-bezier(.2,.7,.2,1), opacity .32s ease, visibility 0s linear .32s;
}
.bogat-sticky.is-visible {
  transform: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform .32s cubic-bezier(.2,.7,.2,1), opacity .32s ease, visibility 0s;
}

/* Frosted glass plate: white light gradient over a blur of the page behind it */
.bogat-sticky__inner {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 12px 16px calc(12px + 44px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(255, 255, 255, .72) 0%, rgba(255, 255, 255, .94) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border-top: 1px solid rgba(6, 46, 58, .08);
  box-shadow: 0 -6px 24px rgba(6, 46, 58, .08);
}
/* Teal rule that draws across the top edge on first appearance */
.bogat-sticky__inner::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 2px;
  width: 0;
  background: #518c97;
  transition: width .8s cubic-bezier(.2,.7,.2,1) .18s;
}
.bogat-sticky.has-shown .bogat-sticky__inner::before { width: 100%; }

.bogat-sticky__call,
.bogat-sticky__book {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 20px;
  margin: 0;
  border-radius: 0;
  font-family: Mont, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.bogat-sticky__call {
  flex: 0 0 auto;
  min-width: 108px;
  gap: 8px;
  padding-left: 16px;
  padding-right: 18px;
  background: rgba(255, 255, 255, .85);
  color: #062e3a;
  border: 1px solid rgba(6, 46, 58, .22);
  box-shadow: 0 1px 4px rgba(6, 46, 58, .10);
}
.bogat-sticky__call:hover,
.bogat-sticky__call:focus-visible { background: #fff; border-color: #518c97; color: #062e3a; }
.bogat-sticky__book {
  flex: 1 1 auto;
  background: #518c97;
  color: #fff;
  border: 1px solid #518c97;
  box-shadow: 0 2px 8px rgba(6, 46, 58, .18);
}
.bogat-sticky__book:hover,
.bogat-sticky__book:focus-visible { background: #3f7480; border-color: #3f7480; color: #fff; }
.bogat-sticky__call:focus-visible,
.bogat-sticky__book:focus-visible { outline: 2px solid #518c97; outline-offset: 2px; }

/* Phone icon — same mark as the header, in brand teal */
.bogat-sticky__icon { width: 20px; height: 20px; flex: 0 0 auto; display: block; color: #518c97; position: relative; top: -1px; }
/* 'Call' has no descenders, so its ink sits high in the line box; nudge to optically center with the icon */
.bogat-sticky__call span { position: relative; top: 1px; }

/* In-app browser mode (class set by sticky-cta.js when it adds viewport-fit=cover):
   layout viewport now reaches the screen edge, so sit flush and pad by the real safe area. */
html.bogat-vf-cover .bogat-sticky { bottom: 0; }
html.bogat-vf-cover .bogat-sticky__inner { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
html.bogat-vf-cover header.header { padding-top: env(safe-area-inset-top, 0px); }
html.bogat-vf-cover .popup { padding-bottom: env(safe-area-inset-bottom, 0px); }

/* Desktop: compact floating button, bottom-right */
@media (min-width: 1024px) {
  .bogat-sticky { left: auto; right: 28px; bottom: 28px; transform: translateY(24px); }
  .bogat-sticky.is-visible { transform: none; }
  .bogat-sticky__inner {
    padding: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-top: 0;
    box-shadow: none;
  }
  .bogat-sticky__inner::before { display: none; }
  .bogat-sticky__call { display: none; }
  .bogat-sticky__book {
    min-width: 240px;
    padding: 16px 32px;
    border-color: #fff;
    box-shadow: 0 4px 14px rgba(6, 46, 58, .20);
  }
  .bogat-sticky__book:hover { transform: translateY(-1px); border-color: #fff; box-shadow: 0 6px 18px rgba(6, 46, 58, .24); }
}

@media (prefers-reduced-motion: reduce) {
  .bogat-sticky,
  .bogat-sticky.is-visible,
  .bogat-sticky__inner::before,
  .bogat-sticky__book,
  .bogat-sticky__call { transition: none; }
  .bogat-sticky.has-shown .bogat-sticky__inner::before { width: 100%; }
}

@media print { .bogat-sticky { display: none !important; } }
