/* /bestellen/: the order steps + the tied pastry box at the end */
.o-main { max-width: 760px; padding: 48px 0 120px; }
.o-lead { color: var(--muted); font-size: 18px; }
.o-step { border: 0; border-top: 1px solid var(--line); margin: 28px 0 0; padding: 24px 0 0; min-width: 0; }
.o-step legend { font: 400 24px/1.2 var(--serif); padding: 0; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.o-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--paper); font: 600 15px/1 var(--sans); }
.o-group { font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin: 20px 0 6px; }
.o-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.o-row b { display: block; font-weight: 600; }
.o-row span { font-size: 14px; color: var(--muted); }
.o-row.on b { color: var(--navy); }
.o-row.on .qty { background: var(--paper); }
.o-hint { font-size: 14px; color: var(--muted); margin-top: 12px; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.days button { flex: 0 0 auto; min-width: 74px; padding: 10px 8px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 2px; cursor: pointer; color: var(--ink); }
.days small { display: block; font-size: 12px; color: var(--muted); text-transform: lowercase; }
.days b { font-weight: 600; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-top: 14px; }
.times button { padding: 11px 0; background: var(--paper); border: 1.5px solid var(--line); border-radius: 2px; font: 600 15px/1 var(--sans); cursor: pointer; color: var(--ink); }
.days button[aria-checked="true"], .times button[aria-checked="true"] { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.days button[aria-checked="true"] small { color: var(--blue-soft); }
.f { display: block; margin-bottom: 14px; }
.f span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.f input { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid #cfc7b6; border-radius: 2px; background: var(--paper); font: 400 16px var(--sans); color: var(--ink); }
.f input:focus { outline: 2px solid var(--blue); border-color: var(--navy); }
.demo { font-size: 13px; color: var(--muted); background: var(--blue-soft); padding: 8px 12px; border-radius: 2px; }
.o-sum { margin: 26px 0 6px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); }
.o-sum span { color: var(--muted); }
.o-err { color: var(--shut); font-weight: 600; min-height: 1.2em; }

/* the ending: the box gets tied, the handwritten card lands in front */
.done { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; padding: 0; border: 0; }
.box-scene { position: relative; padding-bottom: 40px; }
.box { width: 100%; filter: drop-shadow(0 10px 14px rgba(31,37,51,.15)); }
.twine, .bow { stroke-dasharray: 900; stroke-dashoffset: 0; }
.tie .twine { animation: tie 1s ease-out both; }
.tie .bow { animation: tie 1s .8s ease-out both; }
@keyframes tie { from { stroke-dashoffset: 900; } to { stroke-dashoffset: 0; } }
.tag { position: absolute; right: 6%; bottom: 0; width: 46%; display: flex; flex-direction: column; align-items: center; }
.tag .lbl { width: 100%; background: #fff; border: 1px solid #ddd6c8; padding: 10px 8px; text-align: center; font: 700 22px/1.15 var(--hand); color: var(--ink); transform: rotate(-2deg); box-shadow: 0 2px 4px rgba(0,0,0,.12); overflow-wrap: anywhere; }
.tag .lbl i { display: block; font: 400 17px/1.2 var(--hand); margin-top: 4px; }
.tag .blk { width: 70%; height: 14px; background: url(/assets/img/oak.jpg) 30% 50% / 600px auto; box-shadow: 0 2px 2px rgba(0,0,0,.18); }
.tie .tag { animation: drop .5s 1.6s ease-out both; }
@keyframes drop { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
.done-list { padding-left: 18px; margin: 0 0 12px; }
.done-list li.x { list-style: none; margin-left: -18px; font-style: italic; color: var(--muted); }
.done-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
@media (max-width: 760px) {
  .o-main { padding-top: 32px; }
  .done { grid-template-columns: 1fr; gap: 10px; }
  .box-scene { max-width: 380px; margin: 0 auto; width: 100%; }
}
.done[hidden], .o-form[hidden] { display: none; }
