/* One-page checkout prototype; all selections are demonstrative only. */
.checkout-main { padding: 31px 0 58px; }
.checkout-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.checkout-heading h1 { margin: 6px 0 4px; font-size: clamp(27px, 3vw, 38px); line-height: 1.3; letter-spacing: -.7px; }
.checkout-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.checkout-back-link { display: inline-flex; align-items: center; gap: 8px; color: #648d22; font-size: 11px; font-weight: 700; white-space: nowrap; }
.checkout-back-link:hover, .checkout-edit-cart:hover { color: #436513; }
.checkout-safety-note { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 17px; padding: 13px 16px; border: 1px solid #dfe9ce; border-radius: 13px; background: #f5f9ee; color: #5d6958; }
.checkout-safety-icon { width: 23px; height: 23px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #e1efc6; color: #567c1b; font: 700 13px Georgia, serif; }
.checkout-safety-note p { margin: 0; font-size: 10px; line-height: 1.9; }
.checkout-safety-note strong { color: #354330; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(235px, .76fr) minmax(0, .96fr); grid-template-areas: "customer shipping payment" "summary summary summary"; align-items: start; gap: 13px; }
.checkout-grid[hidden], .checkout-empty[hidden], .checkout-fields[hidden] { display: none !important; }
.checkout-panel, .checkout-empty { min-width: 0; padding: 18px; border: 1px solid #e5eae2; border-radius: 17px; background: #fff; box-shadow: 0 5px 20px rgba(24, 33, 27, .035); }
.checkout-customer { grid-area: customer; }
.checkout-shipping { grid-area: shipping; }
.checkout-payment { grid-area: payment; }
.checkout-summary-panel { grid-area: summary; }
.checkout-panel-head { display: flex; align-items: center; gap: 10px; min-height: 37px; margin-bottom: 15px; padding-bottom: 12px; border-bottom: 1px solid #edf0eb; }
.checkout-step-number { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: #f0f6e5; color: #5f8423; font-size: 11px; font-weight: 800; }
.checkout-panel-head h2 { margin: 0; font-size: 14px; line-height: 1.5; }
.checkout-panel-head small { display: block; margin-top: 2px; color: #89938a; font-size: 8px; }
.checkout-panel-icon { width: 23px; height: 23px; margin-inline-start: auto; fill: none; stroke: #26352a; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.checkout-mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: -2px 0 13px; padding: 4px; border-radius: 10px; background: #f4f6f2; }
.checkout-mode { min-height: 34px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #7b857b; font-size: 9px; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.checkout-mode.is-active { border-color: #e6ebdf; background: #fff; color: #26352a; box-shadow: 0 2px 6px rgba(24, 33, 27, .045); font-weight: 700; }
.checkout-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.checkout-field { min-width: 0; display: grid; gap: 5px; color: #667166; font-size: 9px; font-weight: 600; }
.checkout-field-full { grid-column: 1 / -1; }
.checkout-field input, .checkout-field select, .checkout-field textarea { width: 100%; min-width: 0; min-height: 37px; padding: 8px 10px; border: 1px solid #e1e6de; border-radius: 8px; outline: none; background: #fff; color: #303a31; font: 400 10px/1.7 "Vazirmatn", Tahoma, sans-serif; transition: border-color .18s ease, box-shadow .18s ease; }
.checkout-field textarea { min-height: 61px; resize: vertical; }
.checkout-field input::placeholder, .checkout-field textarea::placeholder { color: #a4aca4; }
.checkout-field input:focus, .checkout-field select:focus, .checkout-field textarea:focus { border-color: #afcf70; box-shadow: 0 0 0 3px rgba(198, 243, 95, .16); }
.checkout-field input[readonly] { background: #f7f8f5; color: #7e887e; }
.checkout-subheading { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 10px; padding-top: 13px; border-top: 1px solid #edf0eb; }
.checkout-subheading h3 { margin: 0; color: #344035; font-size: 11px; }
.checkout-subheading small { color: #939d92; font-size: 8px; }
.checkout-inline-note { margin: 12px 0 0; color: #89948a; font-size: 8px; line-height: 1.8; }
.checkout-choice-list { display: grid; gap: 9px; }
.checkout-choice { position: relative; display: block; cursor: pointer; }
.checkout-choice > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.checkout-choice-body { min-height: 68px; display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid #e5eae3; border-radius: 11px; background: #fff; transition: background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.checkout-choice > input:checked + .checkout-choice-body { border-color: #aad262; background: #f2f8e8; box-shadow: inset 0 0 0 1px rgba(163, 215, 57, .17); }
.checkout-choice > input:focus-visible + .checkout-choice-body { outline: 3px solid rgba(128, 177, 39, .45); outline-offset: 2px; }
.choice-marker { position: relative; width: 15px; height: 15px; flex: 0 0 auto; border: 1px solid #b7c1b4; border-radius: 50%; background: #fff; }
.checkout-choice > input:checked + .checkout-choice-body .choice-marker { border-color: #6c9e25; }
.checkout-choice > input:checked + .checkout-choice-body .choice-marker::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #71a42b; }
.checkout-choice-copy { min-width: 0; flex: 1; display: grid; gap: 3px; }
.checkout-choice-copy strong { color: #364136; font-size: 9px; line-height: 1.6; }
.checkout-choice-copy small { color: #89938a; font-size: 7px; line-height: 1.7; }
.choice-tag { padding: 4px 6px; border-radius: 6px; background: #e7f0d7; color: #607c35; font-size: 7px; white-space: nowrap; }
.payment-choice .checkout-choice-body { min-height: 73px; }
.payment-brand { width: 62px; flex: 0 0 auto; padding: 7px 4px; border-radius: 8px; background: #f1f4ed; color: #27372b; text-align: center; font-size: 9px; font-weight: 800; }
.payment-zarinpal { color: #19726e; background: #e9f5f2; }
.payment-zibal { color: #314b83; background: #eef1f9; }
.checkout-future-method { min-height: 54px; display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px dashed #dce2d9; border-radius: 10px; color: #858f86; }
.checkout-future-method > span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #f0f3ed; font-size: 14px; }
.checkout-future-method strong, .checkout-future-method small { display: block; }
.checkout-future-method strong { font-size: 8px; }
.checkout-future-method small { margin-top: 3px; font-size: 7px; }
.checkout-summary-head { margin-bottom: 7px; }
.checkout-edit-cart { margin-inline-start: auto; color: #6b922d; font-size: 9px; font-weight: 600; white-space: nowrap; }
.checkout-edit-cart span { margin-inline-start: 3px; }
.checkout-items { display: grid; }
.checkout-item { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 3px; border-bottom: 1px solid #edf0eb; }
.checkout-item-image { width: 58px; height: 58px; overflow: hidden; border-radius: 10px; background: #f4f6f1; }
.checkout-item-image img { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.checkout-item-info { min-width: 0; display: grid; gap: 4px; }
.checkout-item-info strong { color: #303b32; font-size: 9px; line-height: 1.7; }
.checkout-item-info small { color: #879187; font-size: 8px; }
.checkout-item-total { color: #3e4e3e; font-size: 9px; font-weight: 700; white-space: nowrap; }
.checkout-item-quantity { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; }
.checkout-item-quantity button { width: 23px; height: 23px; border: 1px solid #e0e7d7; border-radius: 7px; background: #fff; color: #506044; cursor: pointer; }
.checkout-item-quantity span { min-width: 15px; text-align: center; font-size: 9px; }
.checkout-item-quantity .checkout-remove { width: auto; padding: 0 7px; border: 0; background: transparent; color: #a0665e; font-size: 8px; }
.checkout-totals { display: grid; gap: 10px; max-width: 500px; margin: 14px 0 17px auto; }
.checkout-total-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #738074; font-size: 9px; }
.checkout-total-row strong { color: #354036; font-size: 10px; }
.checkout-total-row > small { color: #929b92; font-size: 8px; }
.checkout-grand-total { padding-top: 10px; border-top: 1px solid #e8ece5; color: #26342a; font-weight: 700; }
.checkout-grand-total > span { display: grid; gap: 2px; }
.checkout-grand-total > span small { color: #929b92; font-size: 7px; font-weight: 400; }
.checkout-grand-total strong { color: #5f8a1c; font-size: 14px; }
.checkout-submit { width: 100%; min-height: 46px; justify-content: space-between; padding-inline: 17px; font-size: 10px; }
.checkout-submit > span { font-size: 17px; }
.checkout-legal-note { margin: 9px 0 0; color: #929b92; font-size: 8px; line-height: 1.8; text-align: center; }
.checkout-empty { max-width: 560px; margin: 30px auto 70px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 18px; }
.checkout-empty h2 { margin: 14px 0 0; font-size: 18px; }
.checkout-empty p { margin: 8px 0 18px; color: #879187; font-size: 10px; }
.checkout-empty .button { min-height: 41px; font-size: 10px; }
.checkout-footer { border-top: 1px solid #e7ebe4; background: #fff; color: #828d83; font-size: 9px; }
.checkout-footer > .page-wrap { min-height: 55px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checkout-footer a { color: #658d25; font-weight: 600; }
.checkout-page .toast { z-index: 80; }

@media (max-width: 1000px) {
  .checkout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "customer customer" "shipping payment" "summary summary"; }
  .checkout-customer { max-width: none; }
}
@media (max-width: 760px) {
  .checkout-main { padding: 24px 0 39px; }
  .checkout-heading { align-items: flex-start; margin-bottom: 14px; }
  .checkout-heading h1 { font-size: 27px; }
  .checkout-heading p { max-width: 240px; font-size: 9px; line-height: 1.8; }
  .checkout-back-link { margin-top: 24px; font-size: 9px; }
  .checkout-safety-note { gap: 8px; padding: 10px 11px; }
  .checkout-safety-note p { font-size: 8px; }
  .checkout-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "customer" "shipping" "payment" "summary"; gap: 10px; }
  .checkout-panel { padding: 14px; border-radius: 14px; }
  .checkout-panel-head { margin-bottom: 12px; }
  .checkout-fields { gap: 8px; }
  .checkout-field { font-size: 8px; }
  .checkout-field input, .checkout-field select, .checkout-field textarea { min-height: 36px; font-size: 9px; }
  .checkout-choice-body { min-height: 61px; }
  .payment-choice .checkout-choice-body { min-height: 63px; }
  .checkout-item { grid-template-columns: 49px minmax(0, 1fr); gap: 9px; padding: 10px 1px; }
  .checkout-item-image { width: 49px; height: 49px; }
  .checkout-item-total { grid-column: 2; justify-self: start; }
  .checkout-item-quantity { grid-column: 2; }
  .checkout-totals { margin-top: 12px; }
  .checkout-footer > .page-wrap { min-height: 49px; font-size: 8px; }
}
@media (max-width: 380px) {
  .checkout-main .page-wrap { width: calc(100% - 24px); }
  .checkout-panel { padding: 12px; }
  .checkout-choice-body { gap: 7px; padding: 8px; }
  .payment-brand { width: 55px; font-size: 8px; }
}


/* Shared Assist-inspired blue/glass treatment; checkout behavior stays unchanged. */
.checkout-main { position: relative; }
.checkout-heading h1 { color: #171717; }
.checkout-back-link, .checkout-edit-cart, .checkout-footer a { color: #0074e0; }
.checkout-back-link:hover, .checkout-edit-cart:hover { color: #005fbd; }
.checkout-safety-note {
  border-color: rgba(0,132,255,.16);
  background: linear-gradient(135deg,rgba(255,255,255,.84),rgba(235,247,255,.74));
  color: #526171;
  box-shadow: 0 8px 24px rgba(0,83,170,.05),inset 0 1px 0 #fff;
  backdrop-filter: blur(20px);
}
.checkout-safety-icon, .checkout-step-number { background: rgba(0,132,255,.10); color: #0074e0; }
.checkout-safety-note strong { color: #171717; }
.checkout-panel, .checkout-empty {
  border-color: rgba(255,255,255,.94);
  background: linear-gradient(145deg,rgba(255,255,255,.84),rgba(255,255,255,.64));
  box-shadow: 0 13px 34px rgba(0,83,170,.075),inset 0 1px 0 #fff;
  backdrop-filter: blur(22px) saturate(1.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
}
.checkout-panel-head { border-bottom-color: rgba(0,132,255,.11); }
.checkout-panel-icon { stroke: #0074e0; }
.checkout-mode-tabs { background: rgba(0,132,255,.06); }
.checkout-mode.is-active { border-color: rgba(0,132,255,.16); color: #171717; box-shadow: 0 4px 12px rgba(0,83,170,.08); }
.checkout-field input, .checkout-field select, .checkout-field textarea {
  border-color: rgba(0,132,255,.15);
  background: rgba(255,255,255,.78);
}
.checkout-field input:focus, .checkout-field select:focus, .checkout-field textarea:focus {
  border-color: rgba(0,132,255,.55);
  box-shadow: 0 0 0 3px rgba(0,132,255,.11);
}
.checkout-field input[readonly] { background: rgba(0,132,255,.045); }
.checkout-subheading { border-top-color: rgba(0,132,255,.11); }
.checkout-choice-body {
  border-color: rgba(0,132,255,.13);
  background: rgba(255,255,255,.63);
  backdrop-filter: blur(14px);
}
.checkout-choice > input:checked + .checkout-choice-body {
  border-color: rgba(0,132,255,.47);
  background: linear-gradient(135deg,rgba(255,255,255,.95),rgba(226,242,255,.82));
  box-shadow: inset 0 0 0 1px rgba(0,132,255,.12),0 8px 20px rgba(0,83,170,.07);
}
.checkout-choice > input:focus-visible + .checkout-choice-body { outline-color: rgba(0,132,255,.48); }
.checkout-choice > input:checked + .checkout-choice-body .choice-marker { border-color: #0074e0; }
.checkout-choice > input:checked + .checkout-choice-body .choice-marker::after { background: #0084ff; }
.choice-tag { background: rgba(0,132,255,.10); color: #0068cf; }
.payment-zarinpal { color: #006fcf; background: rgba(0,132,255,.09); }
.payment-zibal { color: #25538b; background: rgba(49,154,255,.12); }
.checkout-future-method { border-color: rgba(0,132,255,.20); background: rgba(255,255,255,.42); }
.checkout-future-method > span { background: rgba(0,132,255,.09); color: #0074e0; }
.checkout-total-row strong, .checkout-grand-total { color: #171717; }
.checkout-grand-total { border-top-color: rgba(0,132,255,.16); }
.checkout-grand-total strong { color: #0074e0; }
.checkout-item { border-bottom-color: rgba(0,132,255,.10); }
.checkout-item-image { background: rgba(0,132,255,.07); }
.checkout-item-quantity button { border-color: rgba(0,132,255,.18); color: #0074e0; }
.checkout-footer { border-top-color: rgba(0,132,255,.12); background: rgba(255,255,255,.72); backdrop-filter: blur(16px); }
.checkout-empty .empty-bag { background: rgba(0,132,255,.09); color: #0074e0; }


/* Readability pass: keep form labels, helper text and choices comfortably legible. */
.checkout-heading p, .checkout-back-link, .checkout-edit-cart { font-size: 13px; }
.checkout-safety-note p { color: #334155; font-size: 12px; }
.checkout-step-number { font-size: 12px; }
.checkout-panel-head h2 { font-size: 16px; }
.checkout-panel-head small { color: #475569; font-size: 11px; }
.checkout-mode { font-size: 12px; }
.checkout-field { color: #334155; font-size: 12px; }
.checkout-field input, .checkout-field select, .checkout-field textarea {
  min-height: 42px;
  color: #171717;
  font-size: 14px;
}
.checkout-field input::placeholder, .checkout-field textarea::placeholder { color: #64748b; }
.checkout-subheading h3 { color: #334155; font-size: 13px; }
.checkout-subheading small, .checkout-inline-note { color: #475569; font-size: 11px; }
.checkout-choice-copy strong { color: #1e293b; font-size: 12px; }
.checkout-choice-copy small { color: #475569; font-size: 11px; }
.choice-tag { font-size: 10px; }
.payment-brand { font-size: 11px; }
.checkout-future-method strong { font-size: 11px; }
.checkout-future-method small { color: #475569; font-size: 10.5px; }
.checkout-item-info strong { color: #1e293b; font-size: 12px; }
.checkout-item-info small { color: #475569; font-size: 10.5px; }
.checkout-item-total, .checkout-total-row { color: #334155; font-size: 12px; }
.checkout-total-row strong { color: #171717; font-size: 13px; }
.checkout-total-row > small, .checkout-grand-total > span small { color: #475569; font-size: 10.5px; }
.checkout-grand-total strong { font-size: 16px; }
.checkout-item-quantity span { font-size: 11px; }
.checkout-item-quantity .checkout-remove { font-size: 10.5px; }
.checkout-submit { font-size: 13px; }
.checkout-legal-note { color: #475569; font-size: 11px; }
.checkout-empty p, .checkout-empty .button { color: #475569; font-size: 12px; }
.checkout-footer { color: #475569; font-size: 11px; }
@media (max-width: 760px) {
  .checkout-heading p { font-size: 11.5px; }
  .checkout-back-link { font-size: 11.5px; }
  .checkout-safety-note p { font-size: 11px; }
  .checkout-panel-head h2 { font-size: 15px; }
  .checkout-panel-head small { font-size: 10.5px; }
  .checkout-field { font-size: 11.5px; }
  .checkout-field input, .checkout-field select, .checkout-field textarea { min-height: 43px; font-size: 16px; }
  .checkout-subheading h3 { font-size: 12.5px; }
  .checkout-subheading small, .checkout-inline-note { font-size: 10.5px; }
  .checkout-choice-copy strong, .checkout-item-info strong { font-size: 11.5px; }
  .checkout-choice-copy small, .checkout-item-info small { font-size: 10.5px; }
  .checkout-total-row { font-size: 11px; }
  .checkout-total-row > small, .checkout-grand-total > span small { font-size: 10px; }
  .checkout-legal-note, .checkout-footer { font-size: 10.5px; }
}
@media (max-width: 380px) {
  .checkout-field { font-size: 11px; }
  .checkout-field input, .checkout-field select, .checkout-field textarea { font-size: 15px; }
  .payment-brand { font-size: 10.5px; }
}


/* The empty-state CTA sits on a blue fill, so retain white text for contrast. */
.checkout-empty .button.button-dark { color: #fff; }
