/* Shared navigation and the customer purchases surface. */
.quick-amounts { gap: 8px; }
.quick-amounts button, .account-trigger, .account-panel-head button { min-height: 44px; }
.shop-nav { display: none; justify-content: center; gap: 12px; padding: 20px 16px 0; }
.shop-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 10px; color: var(--paper); text-decoration: none; font-size: .9rem; font-weight: 700; }
.shop-nav a[aria-current] { background: var(--paper); color: var(--ink); }
.shop-nav a:not([aria-current]):hover { background: var(--teal); }
.shop-nav a:focus-visible { outline-color: var(--orange); }
.hero-heading { padding-top: 28px; }
.primary-button, .secondary-button { text-decoration: none; }
.view-purchases .storefront { min-height: calc(100dvh - 100px); }
.purchases-page { width: min(880px, calc(100% - 64px)); margin: 48px auto 0; padding-bottom: 96px; }
.purchases-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.purchases-heading h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.25; }
.purchases-heading p { margin-top: 10px; line-height: 1.6; }
.purchases-heading > a { background: var(--orange); color: var(--ink); flex-shrink: 0; }
#purchases-title:focus-visible { outline-color: var(--orange); }
.account-panel #account-panel-profile .account-profile { margin: 24px 0 0; }
.account-panel #account-panel-profile .account-profile strong { overflow-wrap: anywhere; }
.account-purchases-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; margin-top: 24px; padding: 12px 16px; border-radius: 9px; background: var(--teal); color: var(--paper); text-decoration: none; font-weight: 700; }
.account-purchases-link:hover { background: var(--ink); }
.account-purchases-link span { font-size: 1.25rem; line-height: 1; }
.account-panel #account-panel-profile .account-panel-actions button { min-height: 44px; }
.purchases-page #purchases-status { color: var(--paper); margin-bottom: 20px; }
.purchases-page .purchases-list { gap: 16px; }
.order-card { padding: 24px 28px 28px; border-radius: 16px; background: var(--paper); color: var(--ink); scroll-margin-block: 24px; }
.order-card.is-new { outline: 2px solid var(--orange); outline-offset: 4px; }
.order-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.order-reference { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.order-number { font-size: .84rem; font-weight: 700; font-variant-numeric: tabular-nums; user-select: all; }
.order-date { color: var(--teal); font-size: .78rem; white-space: nowrap; }
.copy-button { min-height: 44px; min-width: 106px; padding: 8px; border: 0; border-radius: 8px; color: var(--teal); background: transparent; font: inherit; font-size: .75rem; font-weight: 700; }
.copy-button:hover { background: var(--tint); }
.order-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 24px; list-style: none; min-height: 68px; border-radius: 8px; }
.order-summary::-webkit-details-marker { display: none; }
.order-recipient { display: flex; align-items: center; gap: 12px; min-width: 0; }
.order-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--tint); }
.order-recipient > div { min-width: 0; }
.order-caption { display: block; color: var(--teal); font-size: .78rem; margin-bottom: 4px; }
.order-username { font-size: 1rem; overflow-wrap: anywhere; }
.order-amount strong { display: block; font-size: 1.6rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-expand { display: inline-flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 44px; border-radius: 8px; color: var(--teal); font-size: .8rem; font-weight: 700; background: var(--tint); }
.order-expand::after { content: ''; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); }
.order-disclosure[open] .order-expand::after { transform: rotate(225deg) translate(-1px, -1px); }
.order-summary:hover .order-expand { background: var(--teal); color: var(--paper); }
.order-information { display: grid; gap: 12px; margin: 28px 0 0; font-size: .85rem; }
.order-information > div { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 16px; align-items: baseline; }
.order-information dt { color: var(--teal); }
.order-information dd { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.order-information .copy-button { margin-block: -8px; }
.order-delivery { margin-top: 28px; }
.order-state { display: block; font-size: .95rem; }
.order-instruction { margin-top: 8px; max-width: 65ch; color: var(--teal); font-size: .85rem; line-height: 1.65; }
.delivery-stages { display: grid; grid-template-columns: 1fr 1fr 4fr; gap: 6px; margin: 22px 0 4px; padding: 0; list-style: none; color: var(--teal); font-size: .74rem; font-weight: 700; }
.delivery-stages li { display: flex; align-items: center; min-width: 0; gap: 8px; }
.delivery-stages li:nth-child(2), .delivery-stages li:last-child { justify-content: center; }
.delivery-stage-mark { position: relative; display: grid; flex: none; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: var(--tint-hover); color: var(--teal); font-size: .72rem; font-variant-numeric: tabular-nums; }
.delivery-stages .is-done .delivery-stage-mark { background: var(--teal); color: var(--paper); font-size: 0; }
.delivery-stages .is-done .delivery-stage-mark::after { content: ''; width: 9px; height: 5px; border: solid var(--paper); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.delivery-stages .is-current .delivery-stage-mark { background: var(--orange); color: var(--ink); }
.delivery-stages .is-current .delivery-stage-label { color: var(--ink); }
.delivery-track { display: grid; grid-template-columns: 1fr 1fr 4fr; grid-template-rows: 88px 11px auto; column-gap: 6px; row-gap: 2px; align-items: end; margin-bottom: 14px; }
.delivery-mascot { grid-row: 1; display: block; justify-self: center; align-self: end; height: 84px; object-fit: contain; pointer-events: none; filter: drop-shadow(0 4px 5px rgb(120 41 15 / .14)); }
.delivery-mascot--pass { grid-column: 2; width: 82px; }
.delivery-mascot--pending { grid-column: 3; width: 128px; }
.delivery-track progress { grid-row: 2; display: block; width: 100%; height: 11px; margin: 0; appearance: none; border: 0; border-radius: 8px; background: var(--tint-hover); overflow: hidden; }
.delivery-progress-order { grid-column: 1; }
.delivery-progress-pass { grid-column: 2; }
.delivery-progress-pending { grid-column: 3; }
.delivery-track progress::-webkit-progress-bar { background: var(--tint-hover); border-radius: 8px; }
.delivery-track progress::-webkit-progress-value { background: var(--teal); border-radius: 8px; }
.delivery-track progress::-moz-progress-bar { background: var(--teal); border-radius: 8px; }
.delivery-track .delivery-progress-pending::-webkit-progress-value { background: var(--orange); }
.delivery-track .delivery-progress-pending::-moz-progress-bar { background: var(--orange); }
.delivery-days { grid-column: 3; grid-row: 3; display: grid; grid-template-columns: repeat(7, 1fr); justify-items: center; margin-top: 7px; }
.delivery-days span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--teal); font-size: .69rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.delivery-days .is-past { background: var(--tint-hover); }
.delivery-days .is-current { background: var(--orange); color: var(--ink); }
.delivery-time { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.remaining { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.expected-date { color: var(--teal); font-size: .8rem; }
.delivery-explanation { margin-top: 9px; font-size: .8rem; color: var(--teal); line-height: 1.6; max-width: 68ch; }
.pending-help { margin-top: 16px; }
.order-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.order-actions > * { min-height: 44px; }
.order-actions .primary-button { font-size: .85rem; }
.purchase-notice { margin-bottom: 24px; color: var(--paper); font-size: .9rem; line-height: 1.6; overflow-wrap: anywhere; }
.purchases-list-actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.purchases-list-actions .secondary-button { background: var(--paper); color: var(--ink); }
.purchases-page .purchases-empty { background: var(--paper); color: var(--ink); border-radius: 16px; padding: 40px 32px; }
.purchases-empty h2 { font-size: 1.3rem; line-height: 1.4; }
.purchases-page .purchases-empty p { max-width: 50ch; }
.purchases-page .primary-button { width: auto; }
.checkout-details { margin-bottom: 16px; }
.checkout-details summary { display: inline-flex; align-items: center; padding: 10px 14px; min-height: 44px; border-radius: 8px; color: var(--teal); background: var(--tint); font-size: .85rem; font-weight: 700; }
.checkout-details .final-details { font-size: .85rem; }
@media (max-width: 650px) {
  .shop-nav { padding-top: 16px; gap: 8px; }
  .shop-nav a { padding-inline: 16px; font-size: .85rem; }
  .purchases-page { width: calc(100% - 32px); margin-top: 32px; }
  .purchases-heading { gap: 12px; margin-bottom: 24px; }
  .purchases-heading h1 { font-size: clamp(1.45rem, 6vw, 1.8rem); }
  .purchases-heading > a { min-height: 44px; padding-inline: 12px; font-size: .77rem; }
  .order-card { padding: 20px; }
  .order-top { flex-wrap: wrap; gap: 4px; margin-bottom: 20px; }
  .order-reference { width: 100%; justify-content: space-between; gap: 2px; }
  .order-number { font-size: .77rem; }
  .copy-button { min-width: 94px; padding-inline: 4px; font-size: .7rem; }
  .order-summary { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
  .order-recipient { grid-column: 1 / -1; }
  .order-amount strong { font-size: 1.6rem; }
  .order-expand { justify-self: end; }
  .order-information > div { grid-template-columns: 1fr; gap: 4px; }
  .order-information { gap: 18px; }
  .order-information dd { gap: 8px; }
  .delivery-stages { align-items: start; min-height: 47px; font-size: .65rem; }
  .delivery-stages li, .delivery-stages li:nth-child(2), .delivery-stages li:last-child { flex-direction: column; justify-content: start; align-items: center; gap: 4px; text-align: center; }
  .delivery-stage-mark { width: 17px; height: 17px; font-size: .6rem; }
  .delivery-stages .is-done .delivery-stage-mark::after { width: 7px; height: 4px; }
  .delivery-track { grid-template-rows: 76px 10px auto; }
  .delivery-mascot { height: 74px; }
  .delivery-mascot--pass { width: 70px; }
  .delivery-mascot--pending { width: 112px; }
  .delivery-track progress { height: 10px; }
  .delivery-days span { width: 20px; height: 20px; font-size: .62rem; }
  .delivery-time { align-items: flex-start; flex-direction: column; gap: 6px; }
  .order-actions > * { width: 100%; }
  .purchases-page .order-actions .primary-button { width: 100%; }
  .purchases-page .purchases-empty { padding: 28px 24px; }
}
@media (max-width: 360px) {
  .order-card { padding: 16px; }
  .order-reference { align-items: flex-start; }
  .order-number { padding-top: 12px; font-size: .7rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .order-disclosure[open] .order-information { animation: order-reveal .22s cubic-bezier(.16, 1, .3, 1); }
  @keyframes order-reveal { from { clip-path: inset(0 0 15%); } to { clip-path: inset(0); } }
}
