/* Checkout — themed styles. Owned by checkout.js
   Three themes: data-theme="warm" | "dark" | "editorial"
   All shared structure, theme overrides at bottom. */

.ic-root, .ic-root * { box-sizing: border-box; }
.ic-root { max-width: 100%; overflow-x: hidden; }
.ic-root {
  --ic-bg: #fffaf2;
  --ic-card: #ffffff;
  --ic-ink: #141414;
  --ic-mute: #6b6359;
  --ic-line: #ece4d6;
  --ic-orange: #ff5b1f;
  --ic-orange-deep: #e94a0f;
  --ic-radius: 14px;
  --ic-radius-sm: 10px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ic-ink);
  font-size: 16px;
  line-height: 1.45;
}

.ic-shell {
  background: var(--ic-card);
  border: 1px solid var(--ic-line);
  border-radius: var(--ic-radius);
  padding: 22px;
  box-shadow: 0 30px 60px -30px rgba(20, 14, 0, 0.18);
}
@media (min-width: 760px) {
  .ic-shell { padding: 36px; }
}

.ic-head { text-align: center; margin-bottom: 18px; }
.ic-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ic-orange);
  margin-bottom: 8px;
}
.ic-title {
  font-family: 'Anton', 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(26px, 5vw, 36px);
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}

/* Steps */
.ic-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0 auto 24px;
  max-width: 520px;
  background: none;
  border: 0;
}
.ic-step {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit;
  font-size: 13px;
  color: var(--ic-mute);
  font-weight: 600;
}
.ic-step-num {
  width: 26px; height: 26px;
  border-radius: 999px;
  background: var(--ic-line);
  color: var(--ic-mute);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: background .2s, color .2s;
}
.ic-step.is-active { color: var(--ic-ink); }
.ic-step.is-active .ic-step-num { background: var(--ic-orange); color: #fff; }
.ic-step.is-done .ic-step-num { background: var(--ic-ink); color: #fff; }
.ic-step.is-done .ic-step-num::before { content: '✓'; }
.ic-step.is-done .ic-step-num { font-size: 0; }
.ic-step.is-done .ic-step-num::before { font-size: 14px; }
.ic-step-line {
  flex: 1 1 auto;
  height: 2px;
  background: var(--ic-line);
  border-radius: 2px;
}

/* Form grid */
.ic-form { display: block; min-width: 0; }
.ic-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}
.ic-col-12 { grid-column: span 12; }
.ic-col-6 { grid-column: span 6; }
.ic-col-3 { grid-column: span 3; }
@media (max-width: 540px) {
  .ic-col-3 { grid-column: span 6; }
}

.ic-panel { margin-bottom: 18px; }
.ic-panel-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.ic-panel-sub { color: var(--ic-mute); margin: 0 0 14px; font-size: 14px; }

/* Fields */
.ic-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.ic-field > span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ic-mute);
}
.ic-field > span em {
  font-style: normal;
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ic-mute);
  opacity: 0.7;
}
.ic-field input, .ic-field select {
  width: 100%;
  min-width: 0;
  padding: 14px 14px;
  font: inherit;
  font-size: 16px;
  background: var(--ic-bg);
  color: var(--ic-ink);
  border: 1.5px solid var(--ic-line);
  border-radius: var(--ic-radius-sm);
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.ic-field input:focus, .ic-field select:focus {
  border-color: var(--ic-orange);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 91, 31, 0.12);
}
.ic-field.is-invalid input, .ic-field.is-invalid select {
  border-color: #d12a2a;
  background: #fff2f0;
}
.ic-pw-wrap, .ic-card-wrap { position: relative; }
.ic-pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; color: var(--ic-mute);
  font: inherit; font-size: 12px; font-weight: 700;
  cursor: pointer; padding: 6px 8px;
  letter-spacing: 0.06em;
}
.ic-card-brand {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 700; color: var(--ic-mute);
  letter-spacing: 0.08em;
}

/* Checkbox */
.ic-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ic-mute);
  cursor: pointer;
  padding-top: 4px;
}
.ic-check input { flex: 0 0 auto; margin-top: 3px; accent-color: var(--ic-orange); width: 18px; height: 18px; }
.ic-check a { color: var(--ic-ink); text-decoration: underline; }
.ic-check.is-invalid span { color: #d12a2a; }

/* Payment methods */
.ic-pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.ic-pay-method {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  border: 1.5px solid var(--ic-line);
  border-radius: var(--ic-radius-sm);
  cursor: pointer;
  background: var(--ic-bg);
  transition: border-color .15s, background .15s;
}
.ic-pay-method input { position: absolute; opacity: 0; }
.ic-pay-method.is-active { border-color: var(--ic-orange); background: #fff; box-shadow: 0 0 0 3px rgba(255, 91, 31, 0.1); }
.ic-pay-icon { color: var(--ic-ink); display: inline-flex; }
.ic-pay-label { font-weight: 600; font-size: 14px; }

.ic-paypal-note {
  background: #f5f3ec;
  padding: 16px;
  border-radius: var(--ic-radius-sm);
  font-size: 14px;
  color: var(--ic-mute);
  border: 1px dashed var(--ic-line);
}
.ic-paypal-note strong { display: block; color: var(--ic-ink); margin-bottom: 4px; font-weight: 700; }

.ic-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--ic-mute);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}

/* Summary */
.ic-summary {
  margin: 22px 0 18px;
  padding: 18px;
  background: var(--ic-bg);
  border: 1px solid var(--ic-line);
  border-radius: var(--ic-radius-sm);
  min-width: 0;
}
.ic-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--ic-mute);
  min-width: 0;
}
.ic-summary-row > span:last-child { flex: 0 0 auto; text-align: right; }
.ic-summary-label { font-weight: 600; color: var(--ic-ink); }
.ic-select {
  font: inherit; font-size: 14px; font-weight: 600;
  padding: 8px 30px 8px 12px;
  background: #fff url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23141414' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1.5px solid var(--ic-line);
  border-radius: 8px;
  color: var(--ic-ink);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  max-width: 60%;
  min-width: 0;
  text-overflow: ellipsis;
  overflow: hidden;
}
.ic-summary-save span:last-child { color: var(--ic-orange); font-weight: 700; }
.ic-summary-total {
  border-top: 1px solid var(--ic-line);
  margin-top: 6px;
  padding-top: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ic-ink);
}
.ic-summary-total span:last-child {
  font-family: 'Anton', sans-serif;
  font-size: 26px;
  letter-spacing: 0.02em;
}
.ic-included { color: var(--ic-orange); font-weight: 700; }

/* Nav */
.ic-nav {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.ic-btn {
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 16px 22px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform .12s ease, background .15s, box-shadow .15s;
  letter-spacing: 0.01em;
}
.ic-btn-ghost {
  background: transparent;
  color: var(--ic-mute);
  padding: 10px 14px;
}
.ic-btn-ghost:hover { color: var(--ic-ink); }
.ic-btn-primary {
  background: var(--ic-orange);
  color: #fff;
  flex: 1 1 auto;
  min-width: 200px;
  box-shadow: 0 10px 24px -10px rgba(255, 91, 31, 0.6);
}
.ic-btn-primary:hover { background: var(--ic-orange-deep); }
.ic-btn-primary:active { transform: translateY(1px); }
.ic-btn-buy { padding: 18px 22px; font-size: 16px; }

/* Success */
.ic-success {
  text-align: center;
  padding: 30px 10px;
}
.ic-success-mark {
  width: 64px; height: 64px;
  border-radius: 999px;
  background: var(--ic-orange);
  color: #fff;
  font-size: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 16px 30px -10px rgba(255, 91, 31, 0.5);
}
.ic-success h3 {
  font-family: 'Anton', sans-serif;
  font-size: 28px;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.ic-success p {
  color: var(--ic-mute);
  max-width: 380px;
  margin: 0 auto 22px;
}

/* THEME: warm (default) — already set above */

/* THEME: dark */
.ic-root[data-theme="dark"] {
  --ic-bg: #15110d;
  --ic-card: #1c1814;
  --ic-ink: #fbf6ee;
  --ic-mute: #9a8e7e;
  --ic-line: #2a231c;
  --ic-orange: #ff7a3a;
  --ic-orange-deep: #ff5b1f;
}
.ic-root[data-theme="dark"] .ic-shell {
  border-color: #2a231c;
  box-shadow: 0 30px 80px -30px rgba(255, 91, 31, 0.25);
}
.ic-root[data-theme="dark"] .ic-field input,
.ic-root[data-theme="dark"] .ic-field select {
  background: #131009;
  color: var(--ic-ink);
  border-color: #2c241c;
}
.ic-root[data-theme="dark"] .ic-field input:focus { background: #1a160f; }
.ic-root[data-theme="dark"] .ic-pay-method { background: #131009; }
.ic-root[data-theme="dark"] .ic-pay-method.is-active { background: #1c1814; }
.ic-root[data-theme="dark"] .ic-paypal-note { background: #131009; border-color: #2c241c; }
.ic-root[data-theme="dark"] .ic-step-num { background: #2c241c; color: var(--ic-mute); }
.ic-root[data-theme="dark"] .ic-summary { background: #131009; border-color: #2c241c; }
.ic-root[data-theme="dark"] .ic-select {
  background-color: #1c1814;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fbf6ee' stroke-width='1.5'/%3E%3C/svg%3E");
  color: var(--ic-ink);
  border-color: #2c241c;
}

/* THEME: editorial (white led, more refined) */
.ic-root[data-theme="editorial"] {
  --ic-bg: #fbfaf7;
  --ic-card: #ffffff;
  --ic-ink: #0d0d0d;
  --ic-mute: #6b6b6b;
  --ic-line: #e7e4dd;
  --ic-orange: #ec5a1c;
  --ic-orange-deep: #c84410;
  --ic-radius: 4px;
  --ic-radius-sm: 4px;
}
.ic-root[data-theme="editorial"] .ic-shell {
  box-shadow: none;
  border: 1px solid var(--ic-line);
}
.ic-root[data-theme="editorial"] .ic-btn { border-radius: 4px; }
.ic-root[data-theme="editorial"] .ic-step-num { border-radius: 4px; }
