.checkout-status {
  font-size: 0.875rem;
  color: var(--ink-2);
  min-height: 1.25rem;
  max-width: none;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(250, 250, 247, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.checkout-modal[hidden] { display: none; }

.checkout-modal-panel {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3rem) clamp(2rem, 5vw, 3rem) clamp(2rem, 4vw, 2.5rem);
  width: 100%;
  max-width: 460px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 40px 100px rgba(28,27,24,0.18),
    0 0 80px var(--accent-glow);
}

.checkout-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.checkout-modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--ink);
}

.checkout-modal-panel h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.checkout-modal-description {
  font-size: 0.9375rem;
  color: var(--ink-2);
  margin-bottom: 1rem;
  max-width: none;
}

.checkout-email-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkout-email-form label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  display: block;
}

.checkout-email-form input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-email-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(62,207,142,0.15);
}

.checkout-email-form input::placeholder { color: var(--ink-3); }

.checkout-modal-status {
  font-size: 0.875rem;
  color: var(--ink-2);
  min-height: 0;
  max-width: none;
}

.checkout-email-form .button { align-self: flex-start; }

/* Consent label — checkout modal */
.checkout-email-form .consent-label {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  gap: 0.75rem;
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.checkout-email-form .consent-label input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: auto;
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  margin-top: 0.15em;
  cursor: pointer;
  display: inline-block;
  pointer-events: auto;
}

.checkout-email-form .consent-label > span {
  flex: 1;
}

.checkout-email-form .consent-label a {
  color: var(--accent);
  text-decoration: underline;
  position: relative;
  z-index: 20;
}

@media (max-width: 760px) {
  .checkout-modal-panel { padding: 1.5rem 1.5rem 2rem; }
}
