/* ═══════════════════════════════════════════════════════════════
   CelebraPlume · Éditeur de la formule Autonome (/creer/<theme>)
   Mobile-first · charte ivoire / charbon / or · BEM (préfixe ed-)
═══════════════════════════════════════════════════════════════ */
:root {
  --ivory: #f9f6f1;
  --ivory-2: #f2ede4;
  --line: #e6dfd3;
  --charcoal: #1a1a1a;
  --night: #14110d;
  --muted: #6b645c;          /* 5,4:1 sur ivoire */
  --gold: #c9a96e;
  --gold-text: #8a6534;      /* or lisible sur fond clair (AA) */
  --gold-soft: rgba(201, 169, 110, .16);
  --danger: #b3261e;
  --ok: #2d6a4f;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', system-ui, sans-serif;
  --bar-h: 58px;
  --radius: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.ed {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--ivory); color: var(--charcoal);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.ed.is-preview-open { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px; }
[hidden] { display: none !important; }
.ed-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ─── Barre du haut ─────────────────────────── */
.ed-bar {
  position: sticky; top: 0; z-index: 40; height: var(--bar-h);
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.ed-bar__logo { font: 500 21px/1 var(--serif); color: var(--charcoal); text-decoration: none; white-space: nowrap; }
.ed-bar__logo span { color: var(--gold); font-size: 16px; margin-right: 2px; }
.ed-bar__logo em { color: var(--gold-text); }
.ed-bar__step { display: none; flex-direction: column; line-height: 1.2; min-width: 0; }
.ed-bar__count { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.ed-bar__theme { font: italic 17px var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-bar__saved { margin: 0 0 0 auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-bar__saved.is-ok::before { content: '✓ '; color: var(--ok); }
.ed-bar__menu { display: none; gap: 14px; }
.ed-bar__preview { flex: none; }

/* ─── Étapes ────────────────────────────────── */
.ed-steps { position: sticky; top: var(--bar-h); z-index: 30; background: var(--ivory); border-bottom: 1px solid var(--line); }
.ed-steps__list {
  display: flex; gap: 6px; margin: 0; padding: 8px 12px; list-style: none;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.ed-steps__list::-webkit-scrollbar { display: none; }
.ed-steps__btn {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 12px 6px 6px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 13px; white-space: nowrap; scroll-snap-align: center; transition: border-color .2s, background-color .2s;
}
.ed-steps__num {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ivory-2); font-size: 12px; font-weight: 600; color: var(--muted);
}
.ed-steps__btn.is-done .ed-steps__num { background: var(--gold-soft); color: var(--gold-text); }
.ed-steps__btn[aria-current="step"] { border-color: var(--charcoal); background: var(--charcoal); color: #fff; }
.ed-steps__btn[aria-current="step"] .ed-steps__num { background: #fff; color: var(--charcoal); }
.ed-steps__bar { height: 2px; background: var(--line); }
.ed-steps__bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .5s var(--ease); }

/* ─── Mise en page ──────────────────────────── */
.ed-main { display: block; }
.ed-panel { padding: 22px 16px 120px; max-width: 720px; margin: 0 auto; }
.ed-noscript { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

.ed-step__title { margin: 0; font: 500 clamp(30px, 7vw, 38px)/1.1 var(--serif); }
/* Titres focalisés par le script à chaque étape (lecteurs d'écran) : pas de cadre, ils ne sont pas cliquables */
.ed-step__title:focus, .ed-done__title:focus { outline: none; }
.ed-step__intro { margin: 8px 0 22px; color: var(--muted); }

/* ─── Champs ────────────────────────────────── */
.ed-group { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.ed-group__title {
  display: block; margin: 0 0 12px; padding: 0;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text);
}
.ed-field { margin: 0 0 16px; }
.ed-field__label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 500; }
.ed-field__req { color: var(--gold-text); }
.ed-input {
  display: block; width: 100%; min-height: 46px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-size: 16px;   /* ≥ 16 px : pas de zoom automatique sur iPhone */
  transition: border-color .2s, box-shadow .2s;
}
textarea.ed-input { min-height: 96px; resize: vertical; line-height: 1.5; }
select.ed-input {
  appearance: none; padding-right: 38px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238a6534' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.ed-input:focus { outline: none; border-color: var(--gold-text); box-shadow: 0 0 0 3px var(--gold-soft); }
.ed-input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
.ed-field__row { display: flex; justify-content: space-between; gap: 10px; margin-top: 5px; }
.ed-field__help { margin: 5px 0 0; font-size: 13px; color: var(--muted); }
.ed-field__count { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ed-field__error { margin: 5px 0 0; font-size: 13px; font-weight: 500; color: var(--danger); }
.ed-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

/* Interrupteur */
.ed-switch { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.ed-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ed-switch__track {
  position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px;
  background: #d8d1c5; transition: background-color .25s;
}
.ed-switch__track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s var(--ease);
}
.ed-switch input:checked + .ed-switch__track { background: var(--charcoal); }
.ed-switch input:checked + .ed-switch__track::after { transform: translateX(18px); }
.ed-switch input:focus-visible + .ed-switch__track { outline: 2px solid var(--gold-text); outline-offset: 2px; }

/* Jetons insérables dans un texte */
.ed-tokens { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ed-token {
  min-height: 32px; padding: 4px 10px; border: 1px dashed var(--gold); border-radius: 999px;
  background: #fff; font-size: 12.5px; color: var(--gold-text);
}
.ed-token:hover { background: var(--gold-soft); }

/* ─── Listes (moments, cartes…) ─────────────── */
.ed-rep__list { margin: 0; padding: 0; list-style: none; }
.ed-rep__item {
  margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.ed-rep__item.is-dragging { position: relative; z-index: 5; box-shadow: 0 18px 40px rgba(26, 26, 26, .18); }
.ed-rep__head { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 4px; border-bottom: 1px solid var(--line); }
.ed-rep__title { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-rep__title em { font-style: normal; font-weight: 400; color: var(--muted); }
.ed-rep__body { padding: 14px 14px 2px; }
.ed-icon-btn {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted);
}
.ed-icon-btn:hover { background: var(--ivory-2); color: var(--charcoal); }
.ed-icon-btn:disabled { opacity: .3; cursor: default; background: transparent; }
.ed-icon-btn--danger:hover { color: var(--danger); }
.ed-icon-btn--drag { cursor: grab; touch-action: none; }
.ed-icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Couleurs du dress code */
.ed-colors { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ed-color { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.ed-color input[type="color"] { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.ed-color input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.ed-color input[type="color"]::-webkit-color-swatch { border: 1px solid rgba(0, 0, 0, .15); border-radius: 50%; }
.ed-color .ed-icon-btn { width: 30px; height: 30px; }

/* Palettes */
.ed-choices { display: grid; gap: 10px; }
.ed-choice { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }
.ed-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ed-choice:has(input:checked) { border-color: var(--charcoal); box-shadow: 0 0 0 1px var(--charcoal); }
.ed-choice:has(input:focus-visible) { outline: 2px solid var(--gold-text); outline-offset: 2px; }
.ed-choice__dots { display: flex; }
.ed-choice__dots i { width: 26px; height: 26px; margin-right: -6px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.ed-choice__txt { display: flex; flex-direction: column; margin-left: 6px; }
.ed-choice__txt strong { font-weight: 500; }
.ed-choice__txt span { font-size: 13px; color: var(--muted); }
.ed-choice__check { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); }
.ed-choice:has(input:checked) .ed-choice__check { border: 6px solid var(--charcoal); }

/* Photos */
.ed-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.ed-photo { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.ed-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ivory-2); }
.ed-photo__bar { display: flex; justify-content: flex-end; padding: 2px; }
.ed-photo .ed-field { margin: 0; padding: 0 8px 8px; }
.ed-photo .ed-input { min-height: 38px; padding: 8px 10px; font-size: 14px; }
.ed-photo--loading img { opacity: .4; }
.ed-photo__progress { position: absolute; left: 10px; right: 10px; top: 42%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .7); overflow: hidden; }
.ed-photo__progress span { display: block; height: 100%; width: 0; background: var(--charcoal); transition: width .2s; }
.ed-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 120px; padding: 18px;
  border: 1.5px dashed var(--gold); border-radius: var(--radius); background: #fff; text-align: center; cursor: pointer;
}
.ed-drop:hover, .ed-drop.is-over { background: var(--gold-soft); }
.ed-drop strong { font-weight: 500; }
.ed-drop span { font-size: 13px; color: var(--muted); }
.ed-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* Adresse : suggestions */
.ed-address { position: relative; }
.ed-suggest {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 30px rgba(26, 26, 26, .12);
}
.ed-suggest li { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 14.5px; }
.ed-suggest li[aria-selected="true"], .ed-suggest li:hover { background: var(--ivory-2); }

/* ─── Boutons ───────────────────────────────── */
.ed-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: 999px; font-size: 14.5px; font-weight: 500; text-decoration: none;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.ed-btn:active { transform: scale(.98); }
.ed-btn--primary { background: var(--charcoal); color: #fff; }
.ed-btn--primary:hover { background: #333; }
.ed-btn--gold { background: var(--gold); color: var(--charcoal); }
.ed-btn--gold:hover { background: #d8bd87; }
.ed-btn--ghost { border-color: var(--line); background: #fff; color: var(--charcoal); }
.ed-btn--ghost:hover { border-color: var(--charcoal); }
.ed-btn--block { width: 100%; }
.ed-btn:disabled { opacity: .45; cursor: default; }
.ed-link { padding: 6px 2px; border: 0; background: none; font-size: 13.5px; color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; }

.ed-actions {
  position: fixed; z-index: 35; left: 0; right: 0; bottom: 0;
  display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(249, 246, 241, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
}
.ed-actions .ed-btn { flex: 1; }

/* Récapitulatif final */
.ed-done { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ed-done__title { margin: 0 0 6px; font: 500 28px/1.15 var(--serif); }
.ed-done ul { margin: 12px 0 0; padding-left: 20px; }
.ed-done li { margin: 4px 0; }
.ed-done__ok { color: var(--ok); font-weight: 500; }
.ed-done__cta { margin-top: 18px; display: grid; gap: 10px; }
.ed-done__note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

/* ─── Aperçu ────────────────────────────────── */
.ed-preview {
  position: fixed; z-index: 60; inset: 0; display: none; flex-direction: column;
  background: var(--night); color: #f3ede2;
}
.is-preview-open .ed-preview { display: flex; }
.ed-preview__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ed-preview__bar .ed-link { color: #e8d5b0; }
.ed-preview__close { margin-left: auto; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font-size: 24px; line-height: 1; }
.ed-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.ed-seg__btn { min-height: 34px; padding: 4px 14px; border: 0; border-radius: 999px; background: transparent; color: #d9d2c4; font-size: 13px; }
.ed-seg__btn.is-on { background: #fff; color: var(--charcoal); }
.ed-stage { position: relative; flex: 1; display: flex; justify-content: center; align-items: flex-start; overflow: hidden; padding: 16px; }
.ed-device {
  position: relative; flex: none; width: 390px; height: 844px; transform-origin: top center;
  border-radius: 34px; background: #000; box-shadow: 0 0 0 8px #2a2620, 0 30px 70px rgba(0, 0, 0, .5); overflow: hidden;
}
.ed-stage.is-desktop .ed-device { width: 1280px; height: 800px; border-radius: 10px; box-shadow: 0 0 0 1px #3a352d, 0 30px 70px rgba(0, 0, 0, .5); }
.ed-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #0b0b0d; visibility: hidden; }
.ed-frame.is-active { visibility: visible; }
.ed-stage__loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-size: 14px; color: #bfb6a6; pointer-events: none; }

/* ─── Divers ────────────────────────────────── */
.ed-toast {
  position: fixed; z-index: 80; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 10px 12px 10px 16px;
  border-radius: 999px; background: var(--charcoal); color: #fff; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.ed-toast button { border: 0; background: none; color: var(--gold); font-weight: 600; text-decoration: underline; }
.ed-help {
  position: fixed; z-index: 34; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px;
  border-radius: 999px; background: #25d366; color: #fff; font-size: 14px; font-weight: 500; text-decoration: none;
  box-shadow: 0 6px 22px rgba(37, 211, 102, .35);
}
.ed-help svg { width: 22px; height: 22px; fill: currentColor; }
.ed-help span { display: none; }

/* ═══ ≥ 600 px ═══ */
@media (min-width: 600px) {
  .ed-bar__step { display: flex; }
  .ed-photos { grid-template-columns: repeat(3, 1fr); }
  .ed-choices--2 { grid-template-columns: 1fr 1fr; }
  .ed-help span { display: inline; }
}

/* ═══ ≥ 1024 px : formulaire à gauche, aperçu à droite ═══ */
@media (min-width: 1024px) {
  .ed-bar__menu { display: flex; }
  .ed-bar__preview { display: none; }
  /* Écran entier, sans défilement de page : seul le formulaire défile, l'aperçu reste en place */
  body.ed { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
  .ed-bar, .ed-steps { flex: none; }
  .ed-main {
    flex: 1; min-height: 0;
    display: grid; grid-template-columns: minmax(420px, 1fr) minmax(460px, 1.05fr); grid-template-rows: minmax(0, 1fr);
  }
  .ed-main > * { min-height: 0; }
  /* position: relative : les éléments absolus du formulaire (textes pour lecteurs d'écran, champ fichier) restent dans
     le panneau qui défile, sinon ils allongent la page et un focus la fait défiler sous la barre */
  .ed-panel { position: relative; width: 100%; max-width: none; padding: 30px clamp(24px, 4vw, 56px) 30px; overflow-y: auto; }
  .ed-actions { position: static; padding: 8px 0 0; background: none; backdrop-filter: none; border: 0; }
  .ed-actions .ed-btn { flex: none; min-width: 150px; }
  .ed-actions #edNext { margin-left: auto; }
  .ed-preview { position: static; display: flex; z-index: auto; }   /* élément de grille : son z-index passerait sinon devant la barre */
  .ed-preview__close { display: none; }
  .ed-help { bottom: 24px; right: 24px; }
  .ed-toast { bottom: 32px; }
  .ed-steps__list { justify-content: center; }
}

.ed-swatch { display: inline-flex; flex: none; }
.ed-swatch i { width: 18px; height: 18px; margin-left: -5px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.ed-swatch i:first-child { margin-left: 0; }
.ed-music { display: flex; align-items: stretch; gap: 8px; }
.ed-music .ed-choice { flex: 1; min-width: 0; }
.ed-listen { flex: none; min-width: 96px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--charcoal); font: 500 13px var(--sans); cursor: pointer; }
.ed-listen:hover { border-color: var(--gold); }
.ed-listen[aria-pressed="true"] { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }

/* ─── Vente : commande, options à chaque étape, paiement ─── */
.ed-cart { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 6px 4px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--charcoal); font: 500 13px var(--sans); cursor: pointer; }
.ed-cart:hover { border-color: var(--gold); }
.ed-cart__label { display: none; color: var(--muted); }
.ed-cart strong { font-size: 15px; }
.ed-cart__count { padding: 4px 9px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-text); font-size: 12px; font-weight: 600; }
.ed-cart:not(:has(.ed-cart__count)) { padding-right: 14px; }
@media (min-width: 600px) { .ed-cart__label { display: inline; } }
@media (max-width: 479px) {
  .ed-bar { gap: 8px; padding: 0 12px; }
  .ed-bar__logo { font-size: 19px; }
  .ed-cart { padding: 4px 12px; }
  .ed-cart__count { display: none; }   /* le total suffit sur petit écran ; le détail est à la dernière étape */
  .ed-cart:not(:has(.ed-cart__count)) { padding-right: 12px; }
}

.ed-addons { margin-top: 30px; padding-top: 22px; border-top: 1px dashed var(--line); }
.ed-addons__title { margin: 0 0 12px; font: 600 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.ed-addon { position: relative; margin-bottom: 12px; padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, #fff, #fffcf6); transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.ed-addon.is-on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 10px 30px -18px rgba(138, 101, 52, .55); }
.ed-addon__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ed-addon__name { font: 500 21px/1.2 var(--serif); }
.ed-addon__price { flex: none; font: 600 15px var(--sans); color: var(--gold-text); }
.ed-addon__pitch { margin: 6px 0 12px; font-size: 14.5px; line-height: 1.5; color: #4a443d; }
.ed-addon__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ed-addon__toggle { border: 1px solid var(--charcoal); background: #fff; color: var(--charcoal); }
.ed-addon.is-on .ed-addon__toggle { background: var(--charcoal); color: #fff; }
.ed-addon__undo { font-weight: 400; opacity: .7; }
.ed-addon__hint, .ed-addon__delay { font-size: 12.5px; color: var(--muted); }
.ed-addon__delay { margin: 10px 0 0; }
.ed-btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }

.ed-mock { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: var(--night); color: #efe7d8; font-size: 13px; }
.ed-mock p { margin: 0; }
.ed-mock p + p { margin-top: 6px; }
.ed-mock__pill { display: inline-block; margin-right: 6px; padding: 1px 7px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: 11px; font-weight: 600; }
.ed-mock__pill.is-on { background: var(--gold); border-color: var(--gold); color: var(--charcoal); }
.ed-mock--table .ed-mock__search { padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.08); }
.ed-mock--table strong { display: block; color: #e8d5b0; font: 500 17px var(--serif); }
.ed-mock--table span { color: #bfb6a6; }
.ed-mock--dash p { display: grid; grid-template-columns: 82px 1fr 28px; align-items: center; gap: 8px; }
.ed-mock--dash i { height: 7px; border-radius: 4px; background: linear-gradient(90deg, var(--gold) var(--w), rgba(255,255,255,.1) var(--w)); }
.ed-mock--dash b { text-align: right; font-weight: 600; }
.ed-mock--dash .ed-mock__file { display: block; margin-top: 10px; color: #e8d5b0; }
.ed-mock--lock { text-align: center; }
.ed-mock__names { font: italic 20px var(--serif); color: #e8d5b0; }
.ed-mock__code { display: inline-block; padding: 6px 16px; border: 1px solid rgba(232,213,176,.5); border-radius: 999px; letter-spacing: .2em; }
.ed-mock--time s { opacity: .55; }
.ed-mock--time strong { color: #e8d5b0; }

.ed-example { width: min(94vw, 440px); max-height: 94vh; padding: 0; border: 0; border-radius: 18px; background: var(--night); color: #f3ede2; }
.ed-example::backdrop { background: rgba(10, 8, 6, .72); backdrop-filter: blur(3px); }
.ed-example__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.ed-example__bar strong { font: 500 19px var(--serif); }
.ed-example__phone { height: min(70vh, 700px); margin: 0 14px; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 6px #2a2620; }
.ed-example__phone iframe { width: 100%; height: 100%; border: 0; background: #000; }
.ed-example__foot { padding: 14px; }
.ed-example__foot .ed-btn { width: 100%; }
.ed-example .ed-preview__close { display: inline-grid; place-items: center; margin: 0; }

.ed-co { margin-top: 18px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ed-co__h { margin: 0 0 12px; font: 500 24px/1.2 var(--serif); }
.ed-co__sub { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.ed-co__addr { display: flex; align-items: center; gap: 16px; }
.ed-co__addr > div { flex: 1; min-width: 0; }
.ed-co__url { margin: 0 0 6px; font: 600 15px var(--sans); color: var(--charcoal); overflow-wrap: anywhere; }
.ed-co__qr { flex: none; margin: 0; text-align: center; font-size: 12px; color: var(--muted); }
.ed-co__qr img { display: block; margin-bottom: 4px; border-radius: 8px; border: 1px solid var(--line); }
.ed-co__free { padding: 1px 7px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-text); font-weight: 600; }
.ed-co__lines { margin: 0; padding: 0; list-style: none; }
.ed-co__lines li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ed-co__lines li span { flex: 1; }
.ed-co__lines .ed-icon-btn { width: 32px; height: 32px; }
.ed-co__total { border-bottom: 0 !important; font-size: 17px !important; }
.ed-co__total strong { font: 600 22px var(--serif); font-variant-numeric: lining-nums; }
.ed-co__suggest { margin-top: 12px; }
.ed-chip { margin: 0 6px 8px 0; padding: 8px 12px; border: 1px dashed var(--gold); border-radius: 999px; background: #fffcf6; color: var(--charcoal); font: 500 13px var(--sans); cursor: pointer; }
.ed-chip:hover { background: var(--gold-soft); }
.ed-bonus { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ed-bonus li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.45; }
.ed-bonus li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 700; }
.ed-bonus strong { display: block; font-size: 15px; }
.ed-bonus span { color: var(--muted); }
.ed-co--account .ed-field { margin-bottom: 14px; }
.ed-pass { display: flex; gap: 8px; align-items: center; }
.ed-pass .ed-input { flex: 1; }
.ed-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.ed-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--charcoal); }
.ed-check a { color: var(--gold-text); }
.ed-co__pay { min-height: 54px; font-size: 16px; }
.ed-co__secure { margin: 10px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.ed-co__dev { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: #fdecea; color: #8c2f39; font-size: 12.5px; text-align: center; }
.ed-done .ed-btn--ghost { margin-top: 16px; }
@media (min-width: 600px) { .ed-bonus { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
