/* Shared calendar presentation; no landing-page styles are loaded globally. */
html:has(#smb-callback) { scrollbar-gutter: stable; }
html.smb-modal-open { overflow: hidden; }
html.smb-modal-open :is(#sticky-bottom-button-section, .brochures-button-section, .smb-lp-sticky) { visibility: hidden; pointer-events: none; }
#smb-callback { font: 400 16px/1.6 Poppins, Helvetica, Arial, sans-serif; }
#smb-callback *, #smb-callback *::before, #smb-callback *::after { box-sizing: border-box; }
#smb-callback h2 { margin: 0; padding: 0; font-family: inherit; font-weight: 600; }
#smb-callback p { margin: 0; padding: 0; }
#smb-callback [hidden] { display: none !important; }
.smb-lp-modal {
  box-sizing: border-box;
  width: min(680px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 0;
  background: transparent;
  color: #1a1a1a;
}

.smb-lp-modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.smb-lp-modal[open] {
  animation: smb-modal-in 0.18s ease-out;
}

@keyframes smb-modal-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Sticky, zero-height bar so the close button stays put while scrolling */
.smb-lp-modal__bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  height: 0;
}

#smb-callback .smb-lp-modal__close {
  width: 40px;
  height: 40px;
  margin: 12px 12px 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #000000;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  color: #ffffff;
  font: 400 26px/40px Helvetica, Arial, sans-serif;
  text-align: center;
  cursor: pointer;
}

#smb-callback .smb-lp-modal__close:hover {
  background: #333333;
}

.smb-lp-modal__box {
  overflow: hidden;
  border: 1px solid #ececec;
  border-radius: 28px;
  background: #ffffff;
  outline: none;
}

.smb-lp-modal__head {
  padding: 26px 64px 22px clamp(20px, 3vw, 40px);
  border-bottom: 1px solid #ececec;
  background: #ffffff;
}

#smb-callback .smb-lp-modal__head h2 {
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.smb-lp-modal__head p {
  margin-top: 6px !important;
  color: #5f5f5f;
}

.smb-lp-modal__body {
  position: relative;
  min-height: 560px;
  padding: 12px clamp(4px, 1.5vw, 16px) 16px;
}

/* The service chooser uses the existing deferred assets and no external media. */
.smb-lp-modal__eyebrow { display: none; }
#smb-callback.is-choosing { width: min(760px, calc(100vw - 32px)); }
#smb-callback.is-choosing .smb-lp-modal__box { border: 1px solid #f0dfc5; border-radius: 40px; background: #fffaf2; }
#smb-callback.is-choosing .smb-lp-modal__head {
  padding: 36px 64px 28px 32px;
  border-bottom: 0;
  background: radial-gradient(ellipse at 100% 0%, #ffe2a8 0%, transparent 65%), #fff6e6;
}
#smb-callback.is-choosing .smb-lp-modal__eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #80531b;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
#smb-callback.is-choosing .smb-lp-modal__head h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 700; letter-spacing: -.035em; }
#smb-callback.is-choosing .smb-lp-modal__head p { max-width: 470px; margin-top: 12px !important; color: #655b4b; font-size: 15px; }
#smb-callback.is-choosing .smb-lp-modal__alt { border-top-color: #eee2cf; background: #fff6e6; font-size: 13px; }
.smb-lp-modal__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 8px 32px 30px;
  background: linear-gradient(#fff6e6, #fffaf2);
}
#smb-callback .smb-lp-modal__choices button {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-height: 184px;
  padding: 24px;
  border: 1px solid #eedfc9;
  border-radius: 26px;
  background: #ffffff;
  color: #24241f;
  font: 600 16px/1.4 Poppins, Helvetica, Arial, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
#smb-callback .smb-lp-modal__choices button:hover { background: #fff8eb; border-color: #ffa700; transform: translateY(-2px); }
.smb-lp-modal__choice-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: linear-gradient(135deg, #ffe6b8, #fff3dc); color: #714600; }
.smb-lp-modal__choice-icon svg { width: 26px; height: 26px; }
.smb-lp-modal__choice-copy { display: grid; gap: 8px; }
.smb-lp-modal__choice-title { font-size: 20px; font-weight: 650; letter-spacing: -.025em; }
.smb-lp-modal__choice-description { max-width: 220px; color: #6b6255; font-size: 13px; font-weight: 400; line-height: 1.6; }
.smb-lp-modal__choice-arrow { position: absolute; top: 24px; right: 24px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(120deg, #ff9800, #ffb52d); color: #24241f; font-size: 20px; transition: transform .2s ease; }
#smb-callback .smb-lp-modal__choices button:hover .smb-lp-modal__choice-arrow { transform: translateX(3px); }
#smb-callback .smb-lp-modal__back {
  margin: 16px clamp(20px, 3vw, 40px) 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #24241f;
  font: 600 14px/1.5 Poppins, Helvetica, Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
#smb-callback :is(.smb-lp-modal__choices button, .smb-lp-modal__back):focus-visible { outline: 3px solid #a96c00; outline-offset: 3px; }
@media (max-width: 600px) {
  #smb-callback.is-choosing { width: 100vw; }
  #smb-callback.is-choosing .smb-lp-modal__box { border: 0; border-radius: 0; }
  #smb-callback.is-choosing .smb-lp-modal__head { padding: 36px 58px 24px 24px; }
  .smb-lp-modal__choices { grid-template-columns: 1fr; padding: 4px 24px 24px; gap: 12px; }
  #smb-callback .smb-lp-modal__choices button { flex-direction: row; align-items: center; min-height: 104px; padding: 20px 46px 20px 16px; gap: 14px; border-radius: 22px; }
  .smb-lp-modal__choice-icon { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 14px; }
  .smb-lp-modal__choice-title { font-size: 18px; }
  .smb-lp-modal__choice-description { font-size: 12px; }
  .smb-lp-modal__choice-arrow { top: calc(50% - 14px); right: 12px; width: 28px; height: 28px; }
}

.smb-lp-modal__frame {
  display: block;
  width: 100%;
  min-height: 560px;
  border: 0;
  overflow: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.smb-lp-modal.is-loaded .smb-lp-modal__frame {
  /* This dialog owns presentation; the provider only needs to set its height. */
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  position: relative !important;
  left: auto !important;
}

.smb-lp-modal__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  font-weight: 600;
  color: #5f5f5f;
}

.smb-lp-modal__spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #eeeeee;
  border-top-color: var(--smb-amber, #ffa700);
  border-radius: 50%;
  animation: smb-spin 0.9s linear infinite;
}

@keyframes smb-spin {
  to { transform: rotate(360deg); }
}

/* Override both the SMB paragraph reset and Divi's final-paragraph rule. */
#smb-callback .smb-lp-modal__alt {
  padding: 20px clamp(20px, 3vw, 40px) 24px;
  /* Divi forces the final paragraph's bottom padding to zero. */
  padding-bottom: 24px !important;
  border-top: 1px solid #ececec;
  background: #fafaf8;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

.smb-lp-modal__alt a {
  font-weight: 700;
  white-space: nowrap;
  text-decoration: underline dotted;
  text-underline-offset: 4px;
}

/* Phones: full screen, square corners, as the estimate popup */
@media (max-width: 600px) {
  .smb-lp-modal {
    width: 100vw;
    max-height: 100vh;
    max-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    margin: 0;
  }

  .smb-lp-modal__box {
    min-height: 100%;
    border: 0;
    border-radius: 0;
  }

  #smb-callback .smb-lp-modal__close {
    width: 44px;
    height: 44px;
    margin: 10px 10px 0 0;
    line-height: 44px;
  }

  #smb-callback .smb-lp-modal__alt {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #smb-callback, #smb-callback * { animation: none !important; transition: none !important; }
}

/* Standalone mobile bar: activate only after its CSS and JS are both ready. */
#wdseo-mobile-actions { --wdseo-mobile-actions-loaded: 1; display: none; }
#wdseo-mobile-actions[hidden] { display: none !important; }
@media (max-width: 980px) {
  #wdseo-mobile-actions {
    display: block; box-sizing: border-box; position: fixed; inset: auto 0 0;
    z-index: 9990; padding: 12px max(12px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: #fffffffa; border-top: 1px solid #e9e5db; box-shadow: 0 -5px 24px #24241f0c;
    font: 600 14px/1.4 Poppins, Helvetica, Arial, sans-serif;
    opacity: 0; visibility: hidden; transform: translateY(calc(100% + 8px));
    transition: transform .3s cubic-bezier(.22, 1, .36, 1), opacity .25s ease, visibility 0s .3s;
  }
  #wdseo-mobile-actions.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  #wdseo-mobile-actions *, #wdseo-mobile-actions *::after { box-sizing: border-box; }
  #wdseo-mobile-actions .wdseo-mobile-actions__inner { display: flex; gap: 10px; max-width: 680px; margin: 0 auto; }
  #wdseo-mobile-actions a { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 50px; padding: 8px 12px; border-radius: 999px; color: #24241f; font: inherit; text-decoration: none; white-space: nowrap; }
  #wdseo-mobile-actions .wdseo-mobile-actions__book { flex: 1; background: linear-gradient(120deg, #ff9800 0%, #ffb020 50%, #ffc15c 100%); background-size: 200% 100%; background-position: 0% 50%; transition: background-position .3s ease, box-shadow .3s ease; }
  #wdseo-mobile-actions .wdseo-mobile-actions__book:is(:hover, :focus-visible) { background-position: 100% 50%; box-shadow: 0 0 0 3px #ffe5bf; }
  #wdseo-mobile-actions .wdseo-mobile-actions__contact { flex: 0 0 120px; background: #f6f4ef; border: 1px solid #e5e0d7; transition: background-color .25s ease, border-color .25s ease; }
  #wdseo-mobile-actions .wdseo-mobile-actions__contact:is(:hover, :focus-visible) { background-color: #fff0d4; border-color: #d5bc8e; }
  #wdseo-mobile-actions a:focus-visible { outline: 3px solid #a96c00; outline-offset: 3px; }
  #wdseo-mobile-actions svg { width: 18px; height: 18px; flex: 0 0 18px; }
  body.wdseo-mobile-actions-ready #sticky-bottom-button-section,
  body.wdseo-mobile-actions-ready .et-l--header .sticky-buttons,
  body.wdseo-mobile-actions-ready .brochures-button-section { display: none !important; }
  body.smb-menu-open #wdseo-mobile-actions,
  html:is(.smb-modal-open, .smb-story-video-open, .ie-modal-open) #wdseo-mobile-actions {
    opacity: 0; visibility: hidden; pointer-events: none; transition: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  #wdseo-mobile-actions, #wdseo-mobile-actions *, #wdseo-mobile-actions *::after { transition: none !important; animation: none !important; }
}

@media (max-width: 360px) {
  #wdseo-mobile-actions .wdseo-mobile-actions__contact { flex-basis: 50px; width: 50px; padding: 0; }
  #wdseo-mobile-actions .wdseo-mobile-actions__contact > span {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
}
/* Branding stays in the form; hide only the floating badge, never challenges. */
.wdseo-recaptcha-attributed .grecaptcha-badge,
.grecaptcha-badge.wdseo-recaptcha-hidden { visibility: hidden !important; }
body .wdseo-recaptcha-note { font: 400 13px/1.6 Poppins, Helvetica, Arial, sans-serif !important; color: #666 !important; margin: 0 0 16px; padding: 0; }
body .wdseo-recaptcha-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* One baseline for the consent and chat launchers, including both sticky bars.
   Tawk owns inline !important insets/transform; independent translate preserves them. */
body.smb-menu-active { --wdseo-floating-bottom: max(20px, env(safe-area-inset-bottom, 0px)); }
body.smb-menu-active.wdseo-mobile-actions-visible {
  --wdseo-floating-bottom: calc(var(--wdseo-mobile-actions-height, 76px) + 12px);
}
html:not(.smb-modal-open):not(.smb-story-video-open):not(.ie-modal-open)
  body.smb-menu-active:has(.smb-lp-sticky.is-visible) {
  --wdseo-floating-bottom: calc(var(--smb-sticky-height, 80px) + 12px);
}
body.smb-menu-active .cky-btn-revisit-wrapper {
  width: var(--wdseo-chat-size, 60px) !important; height: var(--wdseo-chat-size, 60px) !important;
  left: max(24px, env(safe-area-inset-left, 0px)) !important; right: auto !important;
  bottom: var(--wdseo-floating-bottom) !important;
  transition: none;
}
body.smb-menu-active > div:has(> #min-widget) {
  /* Keep the whole vendor stacking context below the header/menu. */
  z-index: 9995 !important;
}
body.smb-menu-active #min-widget iframe[title="Chat widget"] {
  translate: calc(var(--wdseo-chat-native-right, 20px) - max(20px, env(safe-area-inset-right, 0px))) calc(var(--wdseo-chat-native-bottom, 20px) - var(--wdseo-floating-bottom));
}
