/* Customer order pages share the storefront tokens and installation components. */
.order-page main.customer-main { width: min(1040px, calc(100% - 48px)); padding: clamp(24px, 4vw, 42px); margin: 40px auto 64px; background: var(--white); border: 1px solid var(--line); border-radius: 26px; min-height: 420px; }
.customer-main [hidden] { display: none !important; }
.customer-main h1 { font-size: clamp(27px, 3vw, 34px); letter-spacing: -.035em; margin: 0; }
.customer-main h2 { font-size: 19px; margin: 0 0 20px; letter-spacing: -.02em; }
.customer-main h3 { font-size: 18px; margin: 0 0 8px; line-height: 1.5; }
.customer-main p { line-height: 1.65; }
.customer-main .order-lead { margin: 7px 0 0; font-size: 15px; }
.customer-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.customer-account { text-align: right; font-size: 14px; padding-top: 6px; overflow-wrap: anywhere; }
.customer-account > div { display: flex; justify-content: flex-end; gap: 16px; margin-top: 8px; }
#account-error:empty, #account-message:empty { display: none; }
.customer-text-button { border: 0; padding: 3px 0; color: var(--mint-dark); background: transparent; font: inherit; cursor: pointer; font-size: 12px; }
.customer-text-button:focus-visible, .customer-filters button:focus-visible { outline: 3px solid var(--mint-dark); outline-offset: 3px; }
.customer-search { display: flex; gap: 12px; margin: 32px 0 24px; }
.customer-search input { width: 100%; min-width: 0; min-height: 48px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; }
.customer-search input:focus { outline: 2px solid var(--mint-dark); outline-offset: 2px; }
.customer-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px; gap: 5px; border-radius: 14px; background: var(--paper); margin-bottom: 28px; }
.customer-filters button { border: 0; border-radius: 11px; padding: 11px 5px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.customer-filters button[aria-pressed="true"] { color: var(--mint-dark); background: var(--wash); }
.customer-history-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.customer-history-heading > span { font-size: 13px; color: var(--muted); }
.customer-order-card { border: 1px solid var(--line); border-radius: 19px; padding: 20px; margin-bottom: 16px; }
.customer-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 17px; margin-bottom: 21px; color: var(--muted); font-size: 13px; }
.customer-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.customer-badge.ready { background: var(--wash); color: var(--mint-dark); }
.customer-badge.processing { background: #fff2df; color: #976019; }
.customer-badge.attention { background: #fff0ed; color: #a44535; }
.customer-card-body { display: flex; gap: 20px; justify-content: space-between; }
.customer-description { min-width: 0; overflow-wrap: anywhere; }
.customer-description p { font-size: 13px; color: var(--muted); margin: 3px 0; }
.customer-price { font-size: 17px; white-space: nowrap; }
.customer-detail-link { display: block; width: fit-content; margin: 18px 0 0 auto; font-size: 14px; font-weight: 650; color: var(--mint-dark); text-decoration: none; padding: 6px 0 2px; }
.customer-payment-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.customer-payment-controls button { margin: 0; border: 0; background: none; cursor: pointer; }
.customer-payment-controls button:disabled { opacity: .55; cursor: default; }
.customer-bottom { display: flex; justify-content: center; gap: 12px; margin-top: 25px; }
.customer-muted, .customer-summary dt { color: var(--muted); font-size: 13px; }
.customer-back { font-size: 14px; color: var(--ink-soft); text-decoration: none; padding-top: 6px; }
.customer-summary { padding: 0 0 26px; }
.customer-summary-plan { margin-bottom: 24px; }
.customer-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 30px; margin: 0; }
.customer-summary dd { margin: 5px 0 0; font-size: 16px; overflow-wrap: anywhere; }
.customer-progress { list-style: none; display: flex; justify-content: space-between; margin: 25px 0 30px; padding: 0; }
.customer-progress li { position: relative; padding-top: 40px; color: var(--muted); font-size: 12px; width: 33.33%; }
.customer-progress li::before { content: ""; position: absolute; top: 0; left: 0; width: 27px; height: 27px; background: var(--line); border: 5px solid var(--white); border-radius: 50%; z-index: 1; }
.customer-progress li::after { content: ""; position: absolute; top: 17px; height: 2px; left: 24px; width: 100%; background: var(--line); }
.customer-progress li:first-child::after { width: calc(150% - 24px); }
.customer-progress li.complete::before { background: var(--mint-dark); }
.customer-progress li:nth-child(2) { text-align: center; }
.customer-progress li:nth-child(2)::before { left: calc(50% - 18px); }
.customer-progress li:nth-child(2)::after { left: 50%; width: calc(150% - 18px); }
.customer-progress li:last-child { text-align: right; }
.customer-progress li:last-child::before { left: auto; right: 0; }
.customer-progress li:last-child::after { display: none; }
.customer-section, .customer-main .esim-list { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 26px; }
.customer-notice { padding: 18px; background: var(--wash); border-radius: 14px; font-size: 14px; }
.customer-esim-fold { border: 1px solid var(--line); border-radius: 18px; margin: 14px 0; overflow: hidden; }
.customer-esim-fold summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 18px; cursor: pointer; list-style: none; }
.customer-esim-fold summary::-webkit-details-marker { display: none; }
.customer-esim-fold summary > span:nth-child(2) { margin-left: auto; color: var(--muted); font-size: 12px; }
.customer-esim-fold summary::after { content: "⌄"; color: var(--muted); }
.customer-esim-fold[open] summary::after { transform: rotate(180deg); }
.customer-main .customer-esim-fold .esim-item { border: 0; padding-top: 0; margin: 0; box-shadow: none; border-radius: 0; }
.customer-esim-fold .esim-item-heading { display: none; }
.customer-iccid { text-align: left; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.customer-usage-card { padding: 15px 0; }
.customer-usage-card + .customer-usage-card { border-top: 1px solid var(--line); }
.customer-usage-card h3 { font-size: 14px; }
.customer-usage-card p { margin: 6px 0; font-size: 13px; }
.customer-usage-card progress { display: block; width: 100%; height: 9px; border: 0; border-radius: 9px; overflow: hidden; accent-color: var(--mint-dark); background: var(--line); }
.customer-usage-card progress::-webkit-progress-bar { background: var(--line); }
.customer-usage-card progress::-webkit-progress-value { background: var(--mint-dark); border-radius: 9px; }
.customer-main .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.customer-refund-dialog { width: min(490px, calc(100% - 24px)); max-height: calc(100% - 32px); overflow: auto; padding: clamp(16px, 4vw, 26px); border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: white; box-sizing: border-box; }
.customer-refund-dialog::backdrop { background: rgb(14 30 28 / 55%); }
.customer-refund-dialog h2 { margin: 0 0 12px; }
.customer-refund-form, .customer-refund-form label { display: grid; gap: 8px; }
.customer-refund-form { gap: 14px; }
.customer-refund-form :is(select, textarea) { width: 100%; box-sizing: border-box; padding: 9px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.customer-refund-form textarea { resize: vertical; }
.customer-refund-summary { padding: 12px; border-radius: 10px; background: #f4f8f7; }
.customer-refund-summary :is(p, ol, h3) { margin: 4px 0; }
.customer-refund-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (max-width: 760px) {
  .order-page main.customer-main { width: calc(100% - 28px); margin: 22px auto 40px; padding: 22px 16px; border-radius: 20px; }
  .customer-heading { flex-wrap: wrap; gap: 14px; }
  .customer-account { text-align: left; }
  .customer-account > div { justify-content: flex-start; }
  .customer-order-card { padding: 16px; }
  .customer-card-body { flex-wrap: wrap; gap: 10px; }
  .customer-main h3 { font-size: 16px; }
  .customer-price { font-size: 15px; }
  .customer-esim-fold summary { padding: 15px; }
  .customer-summary-grid { gap: 18px; }
}
