/* Dedicated ID keeps these rules independent of the theme's legacy widget CSS. */
body #cas-contact-widget {
  position: fixed !important;
  inset: auto 24px 24px auto !important;
  width: auto !important;
  height: 54px !important;
  z-index: 9990 !important;
  font-family: inherit !important;
}
body #cas-contact-widget .cas-operator-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 156px !important;
  min-width: 0 !important;
  height: 54px !important;
  min-height: 54px !important;
  padding: 0 20px !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  border-radius: 16px !important;
  background: #0070be !important;
  color: #fff !important;
  box-shadow: 0 8px 24px #06467730 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  transform: none !important;
  cursor: pointer !important;
}
body #cas-contact-widget .cas-operator-button:hover { background: #005d9f !important; }
body #cas-contact-widget .cas-operator-button svg { display: block !important; width: 24px !important; height: 24px !important; flex: 0 0 24px !important; stroke-width: 1.7 !important; }
body #cas-contact-widget .cas-contact-trigger-label { color: inherit !important; font-size: 14px !important; font-weight: 600 !important; }
body #cas-contact-widget:not(.is-open) .cas-contact-trigger-close,
body #cas-contact-widget.is-open .cas-contact-trigger-chat { display: none !important; }
body #cas-contact-widget .cas-operator-panel {
  position: absolute !important;
  inset: auto 0 68px auto !important;
  display: block !important;
  width: 342px !important;
  max-width: calc(100vw - 32px) !important;
  max-height: calc(100dvh - 118px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  padding: 22px !important;
  border: 1px solid #dfe8f0 !important;
  border-radius: 20px !important;
  background: #fff !important;
  color: #15334e !important;
  box-shadow: 0 16px 56px #09294329 !important;
  transform: none !important;
  outline: none !important;
}
body #cas-contact-widget .cas-operator-panel[hidden] { display: none !important; }
body #cas-contact-widget .cas-contact-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
body #cas-contact-widget .cas-contact-eyebrow { display: block; color: #0873b9; font-size: 10px; font-weight: 700; line-height: 1.4; letter-spacing: .1em; margin-bottom: 7px; }
body #cas-contact-widget #cas-contact-title { margin: 0 !important; padding: 0 !important; font-size: 22px !important; font-weight: 700 !important; line-height: 1.2 !important; color: #15334e !important; letter-spacing: -.025em !important; }
body #cas-contact-widget .cas-contact-close {
  display: grid !important; place-items: center !important; flex: 0 0 44px !important;
  width: 44px !important; height: 44px !important; min-height: 44px !important;
  margin: -7px -7px 0 0 !important; padding: 0 !important;
  border: 0 !important; border-radius: 9px !important; background: #f2f6fa !important;
  color: #60768b !important; box-shadow: none !important; cursor: pointer !important;
}
body #cas-contact-widget .cas-contact-close:hover { color: #15334e !important; background: #e6eef5 !important; }
body #cas-contact-widget .cas-contact-close svg { width: 18px; height: 18px; }
body #cas-contact-widget .cas-contact-intro { margin: 12px 0 18px !important; color: #65788b !important; font-size: 13px !important; line-height: 1.55 !important; font-weight: 400 !important; }
body #cas-contact-widget .cas-contact-channels { display: grid; gap: 8px; }
body #cas-contact-widget .cas-contact-channel {
  display: flex !important; align-items: center !important; gap: 12px !important;
  min-height: 62px !important; padding: 10px 12px !important;
  border: 1px solid #e2eaf1 !important; border-radius: 12px !important;
  color: #15334e !important; background: #fff !important;
  text-decoration: none !important; box-shadow: none !important;
  transition: background .15s, border-color .15s !important;
}
body #cas-contact-widget .cas-contact-channel:hover { background: #f5f9fc !important; border-color: #aecde4 !important; }
body #cas-contact-widget .cas-contact-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; background: #edf3f8; color: #366385; }
body #cas-contact-widget .cas-contact-icon svg { width: 22px; height: 22px; }
body #cas-contact-widget .cas-contact-channel--whatsapp .cas-contact-icon { background: #e8f8ef; color: #17834e; }
body #cas-contact-widget .cas-contact-channel--telegram .cas-contact-icon { background: #e8f5fd; color: #1585c4; }
body #cas-contact-widget .cas-contact-channel--telegram .cas-contact-icon svg { width: 19px; height: 19px; }
body #cas-contact-widget .cas-contact-copy { display: block; min-width: 0; flex: 1; }
body #cas-contact-widget .cas-contact-copy strong { display: block; color: #15334e !important; font-size: 14px !important; line-height: 1.35 !important; font-weight: 600 !important; overflow-wrap: anywhere; }
body #cas-contact-widget .cas-contact-copy small { display: block; color: #687d90 !important; font-size: 11px !important; line-height: 1.4 !important; margin-top: 3px; font-weight: 400 !important; }
body #cas-contact-widget .cas-contact-arrow { width: 16px; height: 16px; flex: 0 0 16px; color: #7890a4; }
body #cas-contact-widget .cas-contact-hours { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 17px; color: #697e90; font-size: 11px; font-weight: 400; line-height: 1.4; }
body #cas-contact-widget .cas-contact-hours svg { width: 14px; height: 14px; flex: 0 0 14px; }
body #cas-contact-widget .cas-contact-timezone { font-size: 10px; }
body #cas-contact-widget :is(a, button):focus-visible { outline: 2px solid #0070be !important; outline-offset: 3px !important; }
body.oai-cart-lock #cas-contact-widget,
body.cas-filter-open #cas-contact-widget { display: none !important; }
@media (max-width: 767px) {
  body #cas-contact-widget { right: 16px !important; bottom: max(18px, env(safe-area-inset-bottom)) !important; }
  body #cas-contact-widget .cas-operator-button { width: 54px !important; padding: 0 !important; border-radius: 16px !important; }
  body #cas-contact-widget .cas-contact-trigger-label { display: none !important; }
  body #cas-contact-widget .cas-operator-panel { width: min(342px, calc(100vw - 32px)) !important; max-height: calc(100dvh - 112px - env(safe-area-inset-bottom)) !important; }
}
@media (max-width: 359px) {
  body #cas-contact-widget .cas-operator-panel { padding: 18px !important; }
  body #cas-contact-widget .cas-contact-channel { gap: 8px !important; padding: 10px !important; }
  body #cas-contact-widget .cas-contact-copy strong { font-size: 13px !important; }
  body #cas-contact-widget #cas-contact-title { font-size: 21px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body #cas-contact-widget, body #cas-contact-widget * { transition: none !important; }
}
