/*
 * Keep the dedicated Ask app chrome unobstructed in every browser viewport.
 * The public app uses its own controls; Blocksy's site navigation and the
 * global footer/language shell belong to the surrounding website.
 */
body.page-id-17893 #header,
body.page-id-17893 header.ct-header,
body.page-id-17893 #offcanvas,
body.page-id-17893 #footer,
body.page-id-17893 footer.ct-footer,
body.page-id-17893 #cmi-language-switcher-shell,
body.page-id-17893 .cmplz-manage-consent {
  display: none !important;
}

.ask-pwa-install {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--ask-border, #d8d1c6);
  border-radius: 12px;
  background: var(--ask-surface, #fff);
  color: var(--ask-text, #202326);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.ask-pwa-install:focus-visible,
.ask-pwa-close:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.ask-pwa-install:disabled {
  cursor: default;
  opacity: .65;
}


.ask-cookie-controls {
  box-sizing: border-box;
  width: 100%;
  margin: 18px 0 0;
  padding: 16px 2px 0;
  border: 0;
  border-top: 1px solid var(--ask-border, #d8d1c6);
}

.ask-cookie-preferences {
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ask-muted, #514c47);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.ask-cookie-preferences:hover {
  color: var(--ask-text, #202326);
}

.ask-cookie-preferences:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.ask-pwa-legal {
  margin: 10px 2px 0;
  color: var(--ask-muted, #514c47);
  font-size: 13px;
  line-height: 1.45;
}

.ask-pwa-legal a {
  color: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ask-pwa-legal a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.ask-pwa-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000001;
  display: grid;
  place-items: center;
  padding: 20px;
}

.ask-pwa-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(10, 12, 14, .66);
}

.ask-pwa-card {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid var(--ask-border, #d8d1c6);
  border-radius: 20px;
  background: var(--ask-surface, #f7f4ee);
  color: var(--ask-text, #202326);
  padding: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}

.ask-pwa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ask-pwa-head h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(1.25rem, 4vw, 1.7rem);
}

.ask-pwa-card p {
  margin: 18px 0 0;
  color: inherit;
  line-height: 1.55;
}

.ask-pwa-close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid var(--ask-border, #d8d1c6);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 30px;
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  .ask-pwa-card { animation: ask-pwa-in .18s ease-out; }
  @keyframes ask-pwa-in { from { opacity: 0; transform: translateY(8px); } }
}

@media (display-mode: standalone) {
  html.ask-pwa-standalone,
  html.ask-pwa-standalone body.page-id-17893 {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden !important;
    overscroll-behavior: none;
    background: var(--ask-bg, #f7f4ee);
  }

  html.ask-pwa-standalone body.page-id-17893 #header,
  html.ask-pwa-standalone body.page-id-17893 header.ct-header,
  html.ask-pwa-standalone body.page-id-17893 #footer,
  html.ask-pwa-standalone body.page-id-17893 footer.ct-footer {
    display: none !important;
  }

  body.page-id-17893 .ask-app {
    box-sizing: border-box;
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000;
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: pan-y;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}

/* ask-desktop-embed-fix */
@media (min-width: 701px) {
  html:not(.ask-pwa-standalone) body.page-id-17893 {
    overflow: auto !important;
  }

  html:not(.ask-pwa-standalone) body.page-id-17893 .ask-app__chat,
  html:not(.ask-pwa-standalone) body.page-id-17893 .mwai-chatbot-container {
    height: auto !important;
    min-height: 0 !important;
  }

  html:not(.ask-pwa-standalone) body.page-id-17893 #mwai-chatbot-chatbot-ekh91x.mwai-chat.mwai-fullscreen {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: clamp(600px, 72vh, 780px) !important;
    min-height: 600px !important;
    max-height: 780px !important;
    margin: 0 !important;
  }

  html:not(.ask-pwa-standalone) body.page-id-17893 #mwai-chatbot-chatbot-ekh91x .mwai-window-box,
  html:not(.ask-pwa-standalone) body.page-id-17893 #mwai-chatbot-chatbot-ekh91x .mwai-body {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  html:not(.ask-pwa-standalone) body.page-id-17893 #mwai-chatbot-chatbot-ekh91x .mwai-conversation {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
  }
}

/* ask-standalone-cookie-layer-fix */
html.ask-pwa-standalone body.page-id-17893 #cmplz-cookiebanner-container {
  position: relative !important;
  z-index: 2147483646 !important;
}

html.ask-pwa-standalone body.page-id-17893 .cmplz-cookiebanner {
  z-index: 2147483647 !important;
}

html.ask-pwa-standalone body.page-id-17893 .cmplz-cookiebanner.cmplz-show {
  display: grid !important;
}

