/* eCardino Zauberpost: Bestellfenster */

/* Link unter jeder Prinzessin */
.order-link{display:inline-block;margin:-6px 3px 0;font-size:12px;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.world-card.cloud .order-link{color:#83513d}
.world-card.pearl .order-link{color:#216669}
.world-card.wish .order-link{color:#795520}
.order-link:focus-visible{outline:3px solid #377b80;outline-offset:3px}

/* Fenster */
.order-dialog{--accent:#885337;width:min(560px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:18px;background:var(--cream);color:var(--ink);box-shadow:0 30px 90px #1b130d40;overflow:auto}
.order-dialog[data-theme="wolken"]{--accent:#83513d}
.order-dialog[data-theme="perlen"]{--accent:#216669}
.order-dialog[data-theme="wuensche"]{--accent:#795520}
.order-dialog [hidden]{display:none!important}
.order-dialog::backdrop{background:#2d2420a6;backdrop-filter:blur(4px)}
.order-form{position:relative;padding:30px 32px 22px}
.order-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.order-close{position:absolute;top:16px;right:16px;width:38px;height:38px;border:0;border-radius:50%;background:transparent;color:var(--ink);font-size:26px;line-height:1;cursor:pointer}
.order-close:hover{background:#0000000d}
.order-close:focus-visible{outline:3px solid #377b80}
.order-eyebrow{margin:0 40px 10px 0;font-size:10px;font-weight:600;letter-spacing:2px;color:var(--accent)}
.order-dialog h2{margin:0 0 14px;font:400 clamp(26px,4.4vw,34px)/1.12 var(--serif);letter-spacing:-.6px}
.order-dialog h2 em{color:var(--accent)}
.order-dialog h2:focus{outline:none}
.order-error{margin:0 0 12px;padding:9px 12px;border:1px solid #c98c80;border-radius:8px;background:#fbefec;color:#8a2a1c;font-size:12px}

/* Prinzessin wählen */
.order-choice{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 14px;padding:0;border:0}
.order-choice legend{margin-bottom:6px;font-size:12px;font-weight:600}
.order-option{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 6px;border:2px solid var(--line);border-radius:12px;background:#fff;cursor:pointer;text-align:center;min-width:0}
.order-option input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}
.order-option img{width:42px;height:56px;object-fit:cover;border-radius:21px 21px 5px 5px;flex:none}
.order-option span{display:flex;flex-direction:column;min-width:0;max-width:100%}
.order-option strong{font:400 13px/1.2 var(--serif);overflow-wrap:anywhere}
.order-option small{font-size:11px;color:var(--muted)}
.order-option:has(input:checked){border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 22%,transparent)}
.order-option:has(input:checked) strong{color:var(--accent)}
.order-option:has(input:focus-visible){outline:3px solid #377b80;outline-offset:2px}
.order-option.is-soon{opacity:.5;cursor:not-allowed}

/* Felder */
.order-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 12px}
.order-grid .wide{grid-column:1/-1}
.order-grid label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:600}
.order-dialog .order-grid input,.order-dialog .order-grid textarea{width:100%;margin:0;padding:10px 12px;border:1px solid #cfc7b8;border-radius:8px;background:#fff;color:#303a34;font:400 16px/1.4 var(--sans);min-height:46px;min-width:0;max-width:100%}
.order-grid textarea{resize:vertical}
.order-grid input:focus,.order-grid textarea:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent)}
.order-note{margin:0;font-size:11px;line-height:1.5;color:var(--muted)}

/* Prüfen */
.order-review section{margin:0 0 12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fff}
.order-review-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:6px}
.order-review h3{margin:0;font:400 15px var(--serif)}
.order-edit{border:0;background:none;padding:4px 2px;color:var(--accent);font-size:12px;font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.order-edit:focus-visible{outline:3px solid #377b80}
.order-review dl{margin:0}
.order-review dl div{display:grid;grid-template-columns:120px 1fr;gap:8px;padding:5px 0;border-top:1px solid #f0ebe1}
.order-review dt{font-size:11px;color:var(--muted)}
.order-review dd{margin:0;font-size:13px;white-space:pre-line;overflow-wrap:anywhere}

/* Knöpfe */
.order-nav{display:flex;gap:10px;align-items:center;margin-top:18px}
.order-next{flex:1;display:flex;justify-content:center;align-items:center;gap:10px;min-height:52px;padding:12px 18px;border:0;border-radius:8px;background:var(--accent);color:#fffaf0;font:600 14px var(--sans);cursor:pointer}
.order-next:hover{filter:brightness(1.12)}
.order-next:disabled{opacity:.7;cursor:wait}
.order-back{min-height:52px;padding:12px 16px;border:1px solid #cfc7b8;border-radius:8px;background:#fff;color:var(--ink);font:600 13px var(--sans);cursor:pointer}
.order-next:focus-visible,.order-back:focus-visible{outline:3px solid #377b80;outline-offset:2px}
.order-foot{margin:10px 0 0;text-align:center;font-size:11px;color:var(--muted)}

@media(max-width:560px){
  .order-form{padding:24px 18px 18px}
  .order-choice{grid-template-columns:1fr;gap:6px}
  .order-option{flex-direction:row;text-align:left;gap:10px}
  .order-option img{width:36px;height:48px}
  .order-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .order-review dl div{grid-template-columns:96px 1fr;gap:6px}
}