/* Customer service only; all classes are scoped to cd-support. */
.cd-support-root { font-family: inherit; }
.cd-support-root[hidden] { display: none !important; }
.cd-support-trigger {
  position: fixed; z-index: 80; right: max(24px, env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 18px;
  border: 1px solid #c4cff6; border-radius: 999px; background: #f9faff; color: #3454b4;
  box-shadow: 0 5px 22px #22366d20; font-size: 14px; line-height: 1.4; font-weight: 600; font-family: inherit;
  cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s, box-shadow .15s;
}
.cd-support-trigger:hover { background: #eef2ff; box-shadow: 0 7px 26px #22366d30; }
.cd-support-trigger:focus-visible, .cd-support-close:focus-visible, .cd-support-original:focus-visible { outline: 3px solid #5872dd; outline-offset: 4px; }
.cd-support-trigger svg, .cd-support-close svg { display: block; flex: none; }
html.cd-support-modal-open { overflow: hidden; }
.cd-support-dialog {
  box-sizing: border-box; width: min(420px, calc(100vw - 32px)); max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid #e0e5f1; border-radius: 24px;
  color: #1b2944; background: #fafbff; box-shadow: 0 24px 90px #111c4445; overflow: auto;
  font-family: inherit; overscroll-behavior: contain;
}
.cd-support-dialog::backdrop { background: #15234488; backdrop-filter: blur(5px); }
.cd-support-panel { position: relative; padding: 35px 30px 25px; text-align: center; }
.cd-support-close {
  position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; display: grid; place-items: center;
  padding: 0; border: 0; border-radius: 50%; background: transparent; color: #64718b; cursor: pointer;
}
.cd-support-close:hover { background: #eaf0fb; color: #243a69; }
.cd-support-eyebrow { margin: 0 0 12px; font-size: 10px; line-height: 1.5; letter-spacing: 2px; color: #7583a1; }
.cd-support-title { margin: 0; color: #1b2944; font-size: 27px; line-height: 1.4; letter-spacing: -.5px; }
.cd-support-description { margin: 9px 0 23px; color: #6b7890; font-size: 14px; line-height: 1.7; }
.cd-support-qr-frame {
  box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 100%; max-width: 290px;
  margin: 0 auto; padding: 12px; border: 1px solid #e1e7f1; border-radius: 14px; background: #fff; aspect-ratio: 1;
}
.cd-support-qr { display: block; width: 100%; height: auto; max-width: 264px; aspect-ratio: 1; object-fit: contain; image-rendering: pixelated; }
.cd-support-qr[hidden], .cd-support-image-error[hidden] { display: none !important; }
.cd-support-image-error { margin: 0; padding: 22px; color: #7b5d38; font-size: 14px; line-height: 1.8; }
.cd-support-scan { margin: 19px 0 0; color: #2d436b; font-size: 15px; line-height: 1.6; font-weight: 600; }
.cd-support-hint { margin: 8px auto 0; max-width: 285px; color: #7b879c; font-size: 12px; line-height: 1.8; }
.cd-support-original { display: inline-flex; gap: 5px; align-items: center; margin-top: 16px; padding: 5px 8px; color: #4d68bc; border-radius: 5px; font-size: 12px; line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .cd-support-trigger { right: max(14px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); min-height: 44px; padding: 10px 14px; gap: 7px; font-size: 13px; }
  .cd-support-product-route .cd-support-trigger { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .cd-support-dialog { width: min(390px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 20px; }
  .cd-support-panel { padding: 32px 22px 22px; }
  .cd-support-title { font-size: 25px; }
  .cd-support-qr-frame { max-width: 276px; }
}
@media (prefers-reduced-motion: reduce) { .cd-support-trigger { transition: none; } }
@media print { .cd-support-root { display: none !important; } }
