/* Objednávka pre zákazníka (doplnok k shop.css) */
.ord { padding-block: 26px 10px; }
.ord-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ord-head h1 { margin: 4px 0 6px; }
.ord-eyebrow { margin: 0; color: var(--muted); font-size: 14px; }
.ord-status { font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--tile); color: var(--ink); white-space: nowrap; }
.ord-status.st-paid, .ord-status.st-completed { background: #e3f7dc; color: #1f5c10; }
.ord-status.st-new { background: #fff4d6; color: #6b4a00; }
.ord-status.st-cancelled { background: #f6e1e1; color: #8a1c1c; }
.ord-info { background: var(--tile); border-left: 4px solid var(--green-ink); padding: 12px 16px; margin-bottom: 18px; max-width: 70ch; }
.ord-steps { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; counter-reset: s; }
.ord-steps li { counter-increment: s; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--tile); color: var(--muted); font-size: 14px; }
.ord-steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #d6d6d0; color: #fff; font-size: 12px; font-weight: 700; margin-right: 6px; }
.ord-steps li.done { background: #e3f7dc; color: #1f5c10; font-weight: 600; }
.ord-steps li.done::before { background: #3bb320; content: "✓"; }
.ord-table .cr td { color: var(--green-ink); }
.ord-flash { background: #e3f7dc; border-left: 4px solid #3bb320; padding: 10px 14px; margin-bottom: 16px; }
.ord-errors { background: #f9e3e3; border-left: 4px solid #c62828; padding: 10px 14px; margin-bottom: 16px; }
.ord-errors ul { margin: 0; padding-left: 18px; }

.ord-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; }
.ord h2 { font-size: 20px; margin-bottom: 12px; }
.ord-table { overflow-x: auto; }
.ord-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ord-table th, .ord-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ord-table thead th { font-size: 13px; color: var(--muted); font-weight: 600; }
.ord-table .r { text-align: right; }
.ord-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ord-table .grp th { background: var(--tile); font-size: 14px; padding-top: 10px; }
.ord-table .svc td:first-child { font-style: italic; }
.ord-table .sku { display: block; color: var(--muted); font-size: 12px; }
.ord-table tfoot td { border-bottom: 0; padding-block: 5px; }
.ord-table tfoot td:first-child { text-align: right; color: var(--muted); }
.ord-table tfoot .tot td { font-size: 19px; font-weight: 700; color: var(--ink); border-top: 2px solid var(--ink); padding-top: 10px; }

.ord-side { display: grid; gap: 18px; position: sticky; top: 130px; }
.ord-pay { border: 2px solid var(--ink); border-radius: 6px; padding: 20px; }
.ord-pay.paid { border-color: #3bb320; background: #f2fbef; }
.ord-amount { font-size: 30px; font-weight: 700; margin: 0 0 12px; font-variant-numeric: tabular-nums; color: var(--ink); }
.ord-qr { display: block; width: 220px; height: 220px; margin: 0 auto 6px; background: #fff; }
.ord-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 14px 0; font-size: 15px; }
.ord-dl dt { color: var(--muted); }
.ord-dl dd { margin: 0; overflow-wrap: anywhere; }
.ord-contact { background: var(--tile); padding: 16px 20px; border-radius: 6px; }
.ord-contact p { margin: 0; }

.ord-billing { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 24px; }
.ord-form { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 16px; max-width: 900px; }
.ord-form[hidden], .ord [hidden] { display: none; }
.ord-form .f { grid-column: span 3; display: flex; flex-direction: column; gap: 4px; }
.ord-form .f.s { grid-column: span 2; }
.ord-form .f.full { grid-column: 1 / -1; }
.ord-form label { font-size: 14px; font-weight: 600; }
.ord-form input, .ord-form select { font: inherit; padding: 10px 12px; border: 1px solid #c9c9c3; border-radius: 4px; background: #fff; color: var(--ink); min-width: 0; }
.ord-form input:focus, .ord-form select:focus { outline: 3px solid var(--green); outline-offset: 0; border-color: var(--ink); }

@media (max-width: 900px) {
  .ord-grid { grid-template-columns: 1fr; }
  .ord-side { position: static; order: -1; }
}
@media (max-width: 640px) {
  .ord-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ord-form .f { min-width: 0; }
  .ord-form input, .ord-form select { width: 100%; }
  .ord-form .f, .ord-form .f.s { grid-column: 1 / -1; }
  .ord-form .f.s { grid-column: span 1; }
  .ord-table thead th:nth-child(3), .ord-table tbody td:nth-child(3) { display: none; }
  .ord-table tfoot td:first-child { text-align: left; }
}
@media print { .ord-billing form, .ord-contact { display: none; } }

/* ---------- košík a pokladňa ---------- */
.co-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.co-steps li + li::before { content: "›"; margin-right: 6px; color: #b0b0aa; }
.co-steps .on { color: var(--ink); font-weight: 700; }
.ord h1 { margin-bottom: 18px; }
.cart-lines { border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) 90px 120px 40px; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-img { background: var(--tile); aspect-ratio: 1; display: grid; place-items: center; padding: 8px; border-radius: 4px; }
.cart-img img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cart-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-name a { color: var(--ink); font-weight: 600; text-decoration: none; }
.cart-name a:hover { text-decoration: underline; }
.cart-qty input { width: 80px; font: inherit; padding: 8px 10px; border: 1px solid #c9c9c3; border-radius: 4px; text-align: center; }
.cart-sum { text-align: right; font-size: 17px; white-space: nowrap; }
.cart-rm { width: 36px; height: 36px; border: 1px solid var(--line); background: #fff; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); }
.cart-rm:hover { color: var(--sale); border-color: var(--sale); }
.cart-actions { display: flex; gap: 18px; align-items: center; padding: 14px 0; flex-wrap: wrap; }
.cart-total { margin-left: auto; max-width: 380px; display: grid; gap: 8px; padding: 18px; border: 2px solid var(--ink); border-radius: 6px; }
.cart-total p { margin: 0; display: flex; justify-content: space-between; gap: 12px; }
.cart-total b { font-size: 20px; }

.co { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 30px; align-items: start; }
.co-main { display: grid; gap: 18px; }
.co-box { border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; margin: 0; min-width: 0; }
.co-box legend { font-weight: 700; font-size: 17px; padding: 0 6px; margin-left: -6px; color: var(--ink); }
.co-box textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #c9c9c3; border-radius: 4px; }
.co-toggle { margin: 14px 0 6px; }
.co-opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.co-opt + .co-opt { margin-top: 8px; }
.co-opt:has(input:checked) { border-color: var(--ink); background: var(--tile); }
.co-opt input { width: 18px; height: 18px; accent-color: var(--green-ink); }
.co-opt > span { display: flex; flex-direction: column; }
.co-side { position: sticky; top: 130px; }
.co-sum h2 { font-size: 19px; margin-bottom: 10px; }
.co-lines { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.co-lines li, .co-row { display: flex; justify-content: space-between; gap: 12px; margin: 0; }
.co-row { padding: 4px 0; }
.co-total { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 10px; font-size: 19px; color: var(--ink); }
.co-notice { background: var(--tile); border-radius: 4px; padding: 12px 14px; margin: 14px 0; font-size: 14px; }
.co-notice h3 { font-size: 15px; margin-bottom: 6px; }
.co-notice p { margin: 0 0 6px; }
.co-terms { align-items: flex-start; margin: 10px 0; font-size: 14px; }
.co-terms input { margin-top: 2px; flex: 0 0 auto; }
.co-submit { margin-top: 10px; font-size: 17px; padding-block: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) {
  .co { grid-template-columns: 1fr; }
  .co-side { position: static; }
}
@media (max-width: 640px) {
  .cart-line { grid-template-columns: 64px minmax(0, 1fr) auto 40px; grid-template-areas: "img name name rm" "img qty sum sum"; gap: 8px 12px; }
  .cart-sum { font-weight: 700; }
  .cart-img { grid-area: img; } .cart-name { grid-area: name; } .cart-rm { grid-area: rm; }
  .cart-qty { grid-area: qty; } .cart-sum { grid-area: sum; }
  .cart-total { max-width: none; }
}
.ord-form .f.co-lookup { justify-content: flex-end; grid-column: span 4; }
.co-lookup .sbtn { padding: 9px 14px; font-size: 14px; align-self: flex-start; }
@media (max-width: 640px) { .ord-form .f.co-lookup { grid-column: span 1; } }
.co-lookup [data-co-status] { min-height: 40px; display: flex; align-items: center; }
.co-lookup .co-ok { color: var(--green-ink); font-size: 26px; font-weight: 700; line-height: 1; }
