/* Snap ASIN: EU withdrawal-consent modal. Reuses the landing page's CSS
   variables (--p, --p2, --ink, --muted, --soft, --line) and .btn classes.
   Fallback values are given so it still looks right on its own. */
html.sa-consent-open { overflow: hidden; }

.sa-consent {
  position: fixed; inset: 0; z-index: 2147483000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(26, 8, 56, .62);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: sa-consent-fade .16s ease-out;
}
.sa-consent__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  overflow-y: auto; overscroll-behavior: contain;
  background: #fff; color: var(--ink, #1d1033);
  border: 1px solid var(--line, #e7defa);
  border-radius: 22px;
  padding: 32px 28px 24px;
  box-shadow: 0 30px 80px rgba(10, 0, 30, .45);
  font-family: "DM Sans", Inter, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5; text-align: left;
  animation: sa-consent-pop .18s ease-out;
}
.sa-consent__dialog:focus { outline: none; }
.sa-consent__x {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px; border-radius: 12px;
  border: 0; background: transparent; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--muted, #5b4f73);
}
.sa-consent__x:hover { background: var(--soft, #f5f0ff); color: var(--p2, #7c3aed); }
.sa-consent__title {
  font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -.4px;
  margin: 0 40px 0 0; padding: 0;
}
.sa-consent__price {
  margin: 10px 0 0; padding: 12px 14px;
  background: var(--soft, #f5f0ff); border: 1px solid var(--line, #e7defa); border-radius: 12px;
  font-size: 15px; color: var(--ink, #1d1033); font-weight: 600;
}
.sa-consent__check {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 18px 0 0; font-size: 15px;
}
.sa-consent__check input[type="checkbox"] {
  flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0;
  accent-color: var(--p, #9957ff); cursor: pointer;
}
.sa-consent__check label { cursor: pointer; }
.sa-consent__ack {
  margin: 8px 0 0 32px; font-size: 13.5px; font-style: italic; color: var(--muted, #5b4f73);
}
.sa-consent__link { color: var(--p2, #7c3aed); text-decoration: underline; font-weight: 600; }
.sa-consent__link:hover { color: var(--p, #9957ff); }
.sa-consent__sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sa-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.sa-consent__actions .btn { white-space: normal; text-align: center; cursor: pointer; font-family: inherit; }
.sa-consent__confirm { flex: 1 1 260px; border: 0; }
.sa-consent__cancel { flex: 0 1 auto; }
.sa-consent__confirm[disabled],
.sa-consent__confirm[disabled]:hover {
  background: #cbbbe8; color: #fff; box-shadow: none; transform: none; cursor: not-allowed;
}
.sa-consent .btn:focus-visible,
.sa-consent__x:focus-visible,
.sa-consent__link:focus-visible,
.sa-consent__check input:focus-visible {
  outline: 3px solid var(--p, #9957ff); outline-offset: 2px;
}
.sa-consent__note { margin: 12px 0 0; font-size: 13.5px; color: #6b4e00; }
.sa-consent__note:empty { display: none; }
.sa-consent__note:not(:empty) {
  background: #fff4c2; border: 1px dashed #d4a72c; border-radius: 8px; padding: 8px 10px;
}

@media (max-width: 640px) {
  .sa-consent { padding: 10px; align-items: flex-end; }
  .sa-consent__dialog {
    padding: 26px 18px 18px; border-radius: 20px;
    max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px);
  }
  .sa-consent__title { font-size: 20px; }
  .sa-consent__actions { flex-direction: column; }
  .sa-consent__actions .btn { width: 100%; flex: 0 0 auto; }
}
@keyframes sa-consent-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sa-consent-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .sa-consent, .sa-consent__dialog { animation: none; }
}

/* Line under the button (07 section 5) */
.sa-consent__after { margin: 10px 0 0; font-size: 13px; font-style: italic; color: var(--muted, #5b4f73); }

/* ---------- Waitlist section (consent/waitlist-form.html) ---------- */
.sa-waitlist { padding: 72px 0; background: linear-gradient(180deg, #fff 0%, var(--soft, #f5f0ff) 100%); }
.sa-waitlist__box {
  width: min(640px, 100% - 40px); margin: 0 auto;
  background: #fff; border: 1px solid var(--line, #e7defa); border-radius: 22px;
  padding: 36px 28px; box-shadow: 0 24px 60px rgba(124, 58, 237, .12);
}
.sa-waitlist__title { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -.6px; font-weight: 800; color: var(--ink, #1d1033); text-align: center; }
.sa-waitlist__form { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.sa-waitlist__label { font-weight: 700; font-size: 15px; color: var(--ink, #1d1033); }
.sa-waitlist__email {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink, #1d1033);
  padding: 13px 16px; border: 2px solid var(--line, #e7defa); border-radius: 12px; background: #fff;
}
.sa-waitlist__email:focus { outline: none; border-color: var(--p, #9957ff); box-shadow: 0 0 0 3px rgba(153, 87, 255, .2); }
.sa-waitlist__email[aria-invalid="true"] { border-color: #c2410c; }
.sa-waitlist__error { font-size: 14px; font-weight: 600; color: #b42318; }
/* Consent line: same size as body text, not greyed out. */
.sa-waitlist__consent { font-size: 16px; color: var(--ink, #1d1033); margin-top: 4px; }
.sa-waitlist__consent a { color: var(--p2, #7c3aed); text-decoration: underline; font-weight: 600; }
.sa-waitlist__submit { align-self: flex-start; border: 0; cursor: pointer; font-family: inherit; white-space: normal; text-align: center; }
.sa-waitlist__submit:focus-visible { outline: 3px solid var(--p, #9957ff); outline-offset: 2px; }
.sa-waitlist__note { font-size: 13.5px; color: #6b4e00; }
.sa-waitlist__note:empty { display: none; }
.sa-waitlist__note:not(:empty) { background: #fff4c2; border: 1px dashed #d4a72c; border-radius: 8px; padding: 8px 10px; }
.sa-waitlist__done { margin-top: 18px; padding: 18px 20px; border-radius: 14px; background: var(--soft, #f5f0ff); border: 1px solid var(--line, #e7defa); color: var(--ink, #1d1033); font-size: 16px; }
.sa-waitlist__done:focus { outline: none; }
.sa-waitlist__done-title { font-weight: 800; font-size: 18px; margin-bottom: 6px; }
.sa-waitlist [hidden] { display: none !important; }
@media (max-width: 640px) {
  .sa-waitlist { padding: 48px 0; }
  .sa-waitlist__box { padding: 28px 18px; }
  .sa-waitlist__submit { align-self: stretch; }
}
