.buyer-page {
  --buyer-paper: var(--white, #fffdf9);
  --buyer-bg: var(--paper, #f7f4ee);
  --buyer-ink: var(--ink, #28241f);
  --buyer-muted: var(--muted, #6f675d);
  --buyer-accent: var(--accent, #a04836);
  --buyer-line: var(--line, #e6dfd5);
  min-width: 0;
  min-height: 55vh;
  padding: 12px 16px calc(28px + env(safe-area-inset-bottom));
  background: var(--buyer-bg);
  color: var(--buyer-ink);
  font-size: 14px;
}
.buyer-page *, .buyer-sheet * { box-sizing: border-box; }
.buyer-page h1, .buyer-page h2, .buyer-page h3, .buyer-page p { margin: 0; }
.buyer-page button, .buyer-page input, .buyer-page textarea, .buyer-page select { font: inherit; }
.buyer-link {
  border: 0;
  background: transparent;
  padding: 7px 0;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  color: var(--buyer-accent);
  white-space: nowrap;
}
.buyer-card {
  padding: 15px;
  margin-bottom: 12px;
  background: var(--buyer-paper);
  border: 1px solid var(--buyer-line);
  border-radius: 11px;
}
.buyer-card h2 { font-size: 16px; line-height: 1.45; font-weight: 650; }
.buyer-muted { color: var(--buyer-muted); font-size: 13px; line-height: 1.6; }
.buyer-empty { padding: 45px 15px; text-align: center; }
.buyer-empty h2 { margin-bottom: 10px; }
.buyer-empty .buyer-button { margin-top: 14px; }
.buyer-auth { padding: 36px 18px 32px; }
.buyer-auth .buyer-avatar { margin: 0 auto 12px; }
.buyer-row, .buyer-row-spread { display: flex; align-items: center; gap: 10px; }
.buyer-row-spread { justify-content: space-between; }
.buyer-wrap { flex-wrap: wrap; }
.buyer-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.buyer-address-toolbar { margin: 0 0 12px; }
.buyer-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0; }
.buyer-button {
  min-height: 41px;
  padding: 9px 15px;
  border: 1px solid var(--buyer-line);
  border-radius: 7px;
  background: var(--buyer-paper);
  color: var(--buyer-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}
.buyer-button--primary { background: var(--buyer-accent); border-color: var(--buyer-accent); color: #fff; }
.buyer-button[disabled], .buyer-page button[aria-busy='true'] { opacity: .57; cursor: default; }
.buyer-image { width: 72px; height: 86px; flex: 0 0 auto; object-fit: cover; border-radius: 5px; background: #eae4d8; }
.buyer-line-item { display: flex; align-items: flex-start; gap: 10px; }
.buyer-line-item + .buyer-line-item { padding-top: 13px; margin-top: 13px; border-top: 1px solid var(--buyer-line); }
.buyer-line-item input[type='checkbox'] { flex: 0 0 auto; margin: 34px 0 0 0; }
.buyer-page input[type='checkbox'] { width: 17px; height: 17px; accent-color: var(--buyer-accent); }
.buyer-item-body { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.buyer-item-body h3 { font-size: 14px; line-height: 1.45; font-weight: 600; }
.buyer-item-body h3 a { color: inherit; text-decoration: none; }
.buyer-item-body .buyer-muted { margin: 3px 0 6px; }
.buyer-money { color: var(--buyer-accent); font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.buyer-stepper { display: inline-flex; overflow: hidden; align-items: center; border: 1px solid var(--buyer-line); border-radius: 5px; }
.buyer-stepper button { display: grid; place-items: center; width: 30px; height: 31px; padding: 0; border: 0; background: transparent; }
.buyer-stepper output { text-align: center; min-width: 25px; font-variant-numeric: tabular-nums; }
.buyer-summary { padding: 11px 12px; }
.buyer-summary.buyer-card { margin: 14px 0 0; }
.buyer-checkout-total { position: sticky; z-index: 2; bottom: max(10px, env(safe-area-inset-bottom)); box-shadow: 0 8px 26px #352d2322; }
.buyer-checkout-total > div { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.buyer-checkout-total .buyer-money { font-size: 21px; }
.buyer-checkout-total .buyer-button { flex: 0 0 auto; min-height: 46px; padding-inline: 20px; }
.buyer-summary-side { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.buyer-summary-side > div { text-align: right; white-space: nowrap; }
.buyer-page .buyer-note { margin: 8px 0 12px; padding: 10px 12px; background: #f0e5da; color: #723c31; border-radius: 5px; line-height: 1.5; }
.buyer-page .buyer-note:empty { display: none; }
.buyer-load { min-height: 170px; display: grid; place-content: center; text-align: center; }
.buyer-address-title { display: flex; gap: 11px; align-items: center; margin-bottom: 4px; flex-wrap: wrap; }
.buyer-address-title strong { font-size: 15px; }
.buyer-address-text { color: var(--buyer-muted); line-height: 1.6; overflow-wrap: anywhere; }
.buyer-tag { display: inline-block; font-size: 11px; padding: 2px 6px; border-radius: 3px; background: #f1e7da; color: #704c3c; white-space: nowrap; }
.buyer-tag--mock { padding: 4px 8px; border-radius: 6px; color: #704234; font-weight: 650; }
.buyer-card .buyer-card-heading { margin-bottom: 12px; }
.buyer-section-icon svg { color: var(--buyer-accent); flex: 0 0 auto; }
.buyer-checkout-delivery { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--buyer-line); }
.buyer-payment-kind { padding: 4px 8px; border-radius: 6px; background: var(--soft, #eee8df); color: var(--buyer-accent); font-weight: 650; }
.buyer-card .buyer-pay-text { margin-top: 7px; }
.buyer-checkout-coupons summary { min-height: 30px; list-style: none; cursor: pointer; font-weight: 650; gap: 5px; }
.buyer-checkout-coupons summary::-webkit-details-marker { display: none; }
.buyer-checkout-coupons summary > span:first-child { white-space: nowrap; }
.buyer-coupon-summary { display: flex; min-width: 0; gap: 5px; align-items: center; color: var(--buyer-muted); font-size: 13px; font-weight: 500; }
.buyer-coupon-summary > span:not(.buyer-money) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.buyer-coupon-summary svg { flex: 0 0 auto; }
.buyer-checkout-coupons details[open] .buyer-coupon-summary > svg { transform: rotate(90deg); }
.buyer-coupon-options { display: grid; gap: 8px; max-height: 325px; overflow-y: auto; margin-top: 12px; }
.buyer-coupon-option { text-align: left; width: 100%; min-height: 53px; border: 1px solid var(--buyer-line); border-radius: 7px; padding: 7px 9px; background: var(--buyer-paper); }
.buyer-coupon-option[aria-pressed='true'] { border-color: var(--buyer-accent); background: #f6ebe3; }
.buyer-coupon-option > span:first-child { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.buyer-coupon-option > span:last-child { display: inline-flex; gap: 4px; align-items: center; }
.buyer-coupon-option small { font-size: 12px; color: var(--buyer-muted); }
.buyer-coupon-options > .buyer-link { justify-self: end; padding-inline: 8px; }
.buyer-coupon-toolbar { display: flex; justify-content: flex-end; margin-bottom: 7px; }
.buyer-coupon-ticket {
  display: grid; grid-template-columns: minmax(91px, 28%) minmax(0, 1fr); min-width: 0; margin-bottom: 12px;
  background: var(--buyer-paper); border: 1px solid var(--buyer-line); border-radius: 11px; overflow: hidden;
}
.buyer-coupon-value { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; align-content: center; gap: 3px; border-inline-end: 1px dashed #d0aa9a; color: var(--buyer-accent); background: #f5e9df; padding: 11px 4px; }
.buyer-coupon-value strong { font-size: clamp(15px, 5.6vw, 27px); line-height: 1; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.buyer-coupon-value > span { font-size: 14px; }
.buyer-coupon-value small { flex-basis: 100%; text-align: center; }
.buyer-coupon-details { min-width: 0; padding: 13px 12px; overflow-wrap: anywhere; }
.buyer-coupon-details h2 { font-size: 16px; margin-bottom: 3px; line-height: 1.35; }
.buyer-coupon-details .buyer-tag { margin-top: 6px; }
.buyer-coupon-details .buyer-coupon-date { display: flex; flex-wrap: wrap; gap: 0 5px; margin-top: 6px; color: var(--buyer-muted); font-size: 11px; }
.buyer-coupon-date time { white-space: nowrap; }
.buyer-coupon-action { display: flex; justify-content: flex-end; margin-top: 7px; }
.buyer-coupon-action .buyer-button { min-height: 35px; padding-block: 6px; }
.buyer-fields { display: grid; gap: 13px; margin-top: 5px; }
.buyer-fields label { display: grid; gap: 6px; }
.buyer-fields label.buyer-row { display: flex; }
.buyer-fields input:not([type='checkbox']), .buyer-fields textarea, .buyer-fields select {
  min-height: 43px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d8cfc2;
  border-radius: 6px;
  background: white;
  color: var(--buyer-ink);
}
.buyer-fields textarea { min-height: 74px; resize: vertical; }
.buyer-fields input:focus, .buyer-fields textarea:focus, .buyer-fields select:focus, .buyer-page button:focus-visible, .buyer-page a:focus-visible { outline: 2px solid var(--buyer-accent); outline-offset: 2px; }
.buyer-filter { display: flex; gap: 3px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; }
.buyer-filter a { padding: 9px 12px; color: inherit; border-radius: 6px; text-decoration: none; }
.buyer-filter a[aria-current='page'] { background: #eaded1; color: #70392d; font-weight: 650; }
.buyer-order-top { margin-bottom: 13px; }
.buyer-order-bottom { margin-top: 12px; }
.buyer-order-bottom + .buyer-order-aftersale { margin-top: 6px; }
.buyer-order-number { overflow-wrap: anywhere; }
.buyer-status { color: var(--buyer-accent); font-weight: 650; white-space: nowrap; }
.buyer-status-band { margin-bottom: 12px; padding: 20px 17px; background: linear-gradient(120deg, #773e32, #944e3d); color: #fff8ee; border-radius: 11px; }
.buyer-status-band h2 { font-size: 24px; font-weight: 650; margin-bottom: 5px; }
.buyer-status-band .buyer-muted { color: #f3ded0; }
.buyer-payment-panel { display: grid; gap: 9px; }
.buyer-payment-panel .buyer-money { font-size: 21px; }
.buyer-payment-panel .buyer-actions, .buyer-payment-panel .buyer-note { margin: 0; }
.buyer-meta { margin: 8px 0 0; }
.buyer-meta > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.buyer-meta dt { flex: 0 0 auto; color: var(--buyer-muted); }
.buyer-meta dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.buyer-meta .buyer-link { padding: 0 0 0 4px; min-height: 22px; }
.buyer-contact dd span { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-inline-start: 8px; }
.buyer-account-head { padding: 24px 16px 20px; }
.buyer-account-head h2 { font-size: 22px; }
.buyer-account-head .buyer-muted { margin-top: 6px; }
.buyer-account-head .buyer-tag--mock { margin-inline-start: auto; }
.buyer-avatar { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 auto; background: var(--soft, #eee8df); color: var(--buyer-accent); border-radius: 50%; }
.buyer-account-orders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 8px; }
.buyer-account-orders a { display: grid; place-items: center; gap: 4px; padding: 9px 0; color: inherit; text-decoration: none; border-radius: 6px; background: var(--buyer-bg); }
.buyer-account-icon { position: relative; color: var(--buyer-accent); display: inline-flex; }
.buyer-count { display: inline-grid; min-width: 16px; min-height: 16px; place-items: center; padding: 0 4px; background: var(--buyer-accent); color: #fff; border-radius: 100px; font-size: 11px; font-variant-numeric: tabular-nums; }
.buyer-account-icon .buyer-count { position: absolute; top: -5px; left: 90%; }
.buyer-account-row { display: flex; justify-content: space-between; gap: 8px; width: 100%; text-align: left; text-decoration: none; color: inherit; }
.buyer-sheet:not([open]) { display: none; }
.buyer-sheet {
  z-index: 30; position: fixed; inset: auto 0 0; display: grid; width: min(100%, 520px); max-width: none; max-height: 90vh; margin: 0 auto;
  padding: 21px 21px calc(20px + env(safe-area-inset-bottom)); overflow-y: auto; border: 0; border-radius: 19px 19px 0 0;
  background: var(--buyer-paper); color: var(--buyer-ink); box-shadow: 0 -6px 30px #30221a35;
}
.buyer-sheet::backdrop { background: #2c211ac0; }
.buyer-sheet-backdrop:not([hidden]) { position: fixed; inset: 0; z-index: 29; background: #2c211ac0; }
.buyer-sheet-top { display: flex; justify-content: space-between; align-items: flex-start; }
.buyer-sheet-close { display: grid; place-items: center; width: 42px; height: 42px; border: 0; padding: 0; background: transparent; color: var(--buyer-muted); }
.buyer-sheet h2 { margin-top: 11px; font-size: 22px; }
.buyer-sheet .buyer-sheet-order { overflow-wrap: anywhere; margin-top: 4px; }
.buyer-sheet-price { display: grid; gap: 4px; padding: 12px 0; margin-top: 10px; }
.buyer-sheet-price .buyer-money { font-size: 30px; letter-spacing: .02em; }
.buyer-sheet-actual { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; border-radius: 8px; background: var(--soft, #eee8df); }
.buyer-sheet .buyer-sheet-description { margin: 9px 0 15px; }
.buyer-sheet .buyer-button { min-height: 47px; }
@media (max-width: 370px) {
  .buyer-page { padding-inline: 12px; }
  .buyer-card { padding: 12px; }
  .buyer-image { width: 60px; height: 77px; }
  .buyer-summary-side { gap: 6px; }
  .buyer-summary-side .buyer-button { padding-inline: 10px; }
  .buyer-checkout-total .buyer-button { padding-inline: 14px; }
}
