.cx-contact {
  width: min(1040px, calc(100% - 32px));
  height: fit-content;
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 1px solid #dce7ee;
  border-radius: 18px;
  background: #fff;
  color: #16354a;
  color-scheme: light;
  box-shadow: 0 24px 80px rgb(0 30 52 / 30%);
  overflow: hidden;
}
.cx-contact[open] {
  display: flex;
  flex-direction: column;
}
.cx-contact.is-calendar-active { width: min(1160px, calc(100vw - 48px)); height: min(800px, calc(100dvh - 24px)); max-height: calc(100dvh - 24px); border-radius: 12px; }
.cx-contact [hidden] { display: none !important; }
.cx-contact-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.cx-contact.is-calendar-active .cx-contact-body { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.cx-contact.is-calendar-active .cx-contact-header { flex: 0 0 auto; gap: 8px; padding: 0 12px; }
.cx-contact.is-calendar-active .cx-contact-direct { flex: 0 0 auto; padding: 4px 16px; gap: 6px 24px; }
.cx-contact.is-calendar-active .cx-contact-direct span { display: none; }
.cx-contact.is-calendar-active .cx-contact-direct strong { font-size: 16px; line-height: 22px; }
.cx-contact-direct { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px 28px; border-bottom: 1px solid #dce7ee; background: #f3f8fb; }
.cx-contact-direct a { display: flex; flex-direction: column; gap: 5px; min-width: 0; color: #16354a; text-decoration: none; }
.cx-contact-direct span { font-size: 14px; line-height: 1.5; }
.cx-contact-direct strong { font-size: 20px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.cx-contact-direct a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.cx-contact-consent { padding: 28px; }
.cx-contact-consent h2 { margin: 0 0 16px; font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -.3px; }
.cx-contact-consent p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; }
.cx-contact-consent .cx-contact-privacy { font-size: 13px; color: #496477; }
.cx-contact-consent a { color: #006ca8; text-decoration: underline; text-underline-offset: 3px; }
.cx-contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.cx-contact-button { min-height: 44px; padding: 11px 20px; border: 1px solid #9db7c9; border-radius: 8px; background: #f3f8fb; color: #16354a; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.cx-contact-button:hover { background: #e2eff7; border-color: #007fc5; }
.cx-contact a:focus-visible, .cx-contact button:focus-visible { outline: 2px solid #007fc5; outline-offset: 3px; }
.cx-contact-calendar-toolbar { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.cx-contact-calendar-toolbar button { padding: 8px 10px; min-height: 44px; border: 0; border-radius: 6px; background: #fff; color: #16354a; font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cx-contact-loading { margin: 0; padding: 10px 20px; font-size: 14px; }
.cx-contact-calendar-slot:empty { display: none; }
.cx-contact-calendar-slot { flex: 1 1 0; display: flex; min-height: 0; }
.cx-contact::backdrop {
  background: rgb(0 30 52 / 65%);
}
html:has(.cx-contact[open]) {
  overflow: hidden;
}
.cx-contact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #dce7ee;
}
.cx-contact-header p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.cx-contact-header form {
  margin: 0;
}
.cx-contact-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e9f4fa;
  color: #16354a;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.cx-contact-close:hover {
  background: #d4eaf6;
}
.cx-contact-close:focus-visible,
.cx-contact-fallback a:focus-visible {
  outline: 2px solid #007fc5;
  outline-offset: 3px;
}
.cx-contact-calendar {
  width: 100%;
  flex: 1;
  min-height: 0;
  height: 100%;
  border: 0;
  background: #fff;
}
.cx-contact-fallback {
  margin: 0;
}
.cx-contact-fallback a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #006ca8;
  font-size: 24px;
  text-decoration: none;
}
@media (max-width: 600px) {
  .cx-contact {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 12px;
  }
  .cx-contact.is-calendar-active { width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .cx-contact.is-calendar-active .cx-contact-direct { gap: 6px; padding: 8px 16px; }
  .cx-contact-direct { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .cx-contact-direct strong { font-size: 18px; }
  .cx-contact-consent { padding: 20px; }
  .cx-contact-consent h2 { font-size: 21px; }
  .cx-contact-actions { display: grid; grid-template-columns: 1fr; }
  .cx-contact-header {
    padding: 8px 12px;
  }
}
