/* STORE TWENTY-ONE · order page and customer account page (owner: account).
 * Loaded on every shop page, so every class here is prefixed ac-. Safe down to a 320px screen.
 */

.ac-wrap { overflow-wrap: anywhere; min-width: 0; }
.ac-upper { text-transform: uppercase; }
.ac-hl { color: var(--ivory); overflow-wrap: anywhere; }
.ac-code { overflow-wrap: anywhere; font-size: clamp(1.5rem, 7vw, 2.6rem); letter-spacing: 0.04em; margin: 0; }
.ac-lookup .title-lg { overflow-wrap: anywhere; margin: 0; }
.ac-thanks { display: grid; gap: 4px; margin: 0; }

/* Order progress: vertical on phones, a row of five from 720px */
.ac-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ac-step { position: relative; display: flex; align-items: center; gap: 12px; color: var(--muted); min-width: 0; }
.ac-step-dot {
  position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; border: 2px solid var(--line-strong); background: var(--bg); font: 700 13px/1 var(--font);
}
.ac-step-dot .icon { width: 16px; height: 16px; }
.ac-step-label { overflow-wrap: anywhere; min-width: 0; }
.ac-step + .ac-step::before {
  content: ''; position: absolute; left: 14px; bottom: 100%; width: 2px; height: 14px; background: var(--line-strong);
}
.ac-step.is-done { color: var(--ivory); }
.ac-step.is-done .ac-step-dot { background: var(--gold); border-color: var(--gold); color: #111; }
.ac-step.is-done + .ac-step::before { background: var(--gold); }
.ac-step.is-current { color: var(--ivory); font-weight: 700; }
.ac-step.is-current .ac-step-dot { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.18); }
@media (min-width: 720px) {
  .ac-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
  .ac-step { flex-direction: column; text-align: center; gap: 8px; font-size: 14px; padding: 0 4px; }
  .ac-step + .ac-step::before { left: -50%; right: 50%; width: auto; bottom: auto; top: 14px; height: 2px; }
}

/* Items and details */
.ac-items { list-style: none; margin: 0; padding: 0; }
.ac-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ac-item:first-child { padding-top: 0; }
.ac-item-name { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.ac-item-qty { font-weight: 400; }
.ac-item-total { flex: none; white-space: nowrap; }
.ac-order .summary dt { min-width: 0; overflow-wrap: anywhere; }
.ac-order .summary dd { flex: none; white-space: nowrap; }
.ac-details { display: grid; gap: 10px; margin: 0; }
.ac-details > div { display: grid; gap: 2px; min-width: 0; }
.ac-details dt { color: var(--muted); font-size: 13px; }
.ac-details dd { margin: 0; overflow-wrap: anywhere; }
.ac-order .icon { vertical-align: -4px; flex: none; }

/* Payment */
.ac-pay .notice { margin: 0; }
.ac-pay-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ac-pay-method { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.ac-pay-status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ac-pay-send {
  margin: 0; padding: 14px 16px; border-radius: 12px; font-size: 1.05rem; line-height: 1.7;
  border: 1px solid rgba(212, 175, 55, 0.45); background: rgba(212, 175, 55, 0.08);
}
.ac-pay-send .ac-hl { color: var(--gold); white-space: nowrap; }
.ac-ref-form { padding-top: 12px; border-top: 1px solid var(--line); }
.ac-sub { font-size: 1.1rem; margin: 0; }
.ac-ref-form p { margin: 0; }
.ac-wa .icon { flex: none; }

/* Account */
.ac-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ac-head > * { min-width: 0; }
.ac-head .title-lg { margin: 0; }
.ac-forms { align-items: start; }
.ac-forms .notice { margin: 0; }
.ac-orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ac-order-row { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); min-width: 0; }
.ac-order-top, .ac-order-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ac-order-code { font-weight: 700; overflow-wrap: anywhere; }
