/* Reason: the approved compact concept uses white, navy and blue until a customer selects a payment provider. */
:root{background:#fff}
body{--ink:#142d4e;--muted:#657083;--line:#e1e7ee;--surface:#f3f6fa;--canvas:#fff;--accent:#2463c5;--secondary:#2463c5;--accent-soft:#eef4ff;--focus:rgba(36,99,197,.16);--button-bg:#2463c5;background:#fff;color:var(--ink);font-size:15px;line-height:1.6}
body[data-provider=""],body[data-step="entry"]{--accent:#2463c5;--secondary:#2463c5;--accent-soft:#eef4ff;--focus:rgba(36,99,197,.16);--button-bg:#2463c5}
body[data-provider="jawwal"]{--button-bg:#4f8216}
body[data-provider="palpay"]{--button-bg:#a91b80}
.shell{width:calc(100% - 32px);max-width:720px}
.masthead{background:#fff;border-bottom:1px solid #e1e7ee;color:var(--ink)}
.site-header{min-height:60px;gap:12px}
.brand,.brand span{color:#142d4e;font-size:23px;letter-spacing:-.5px;text-decoration:none;font-weight:700}
/* Reason: the home link remains an accessible touch target while its wordmark stays visually compact. */
.brand{display:inline-flex;align-items:center;min-height:44px}
.header-actions{display:flex;align-items:center;gap:4px}
.header-history,.header-account{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:#2463c5;font:700 15px/1.4 Tajawal,Arial,sans-serif;text-decoration:none}
.header-history{color:#657083;font-weight:400;font-size:13px}
.history-count,body[data-provider=""] .history-count{background:#edf3fd;color:#2463c5;min-width:20px}
main.shell,body[data-step="catalog"] main.shell,body[data-step="wallet"] main.shell,body[data-step="entry"] main.shell{max-width:720px;padding-block:24px 12px}
.page-heading h1,.checkout-card .page-heading h1{font-size:26px;line-height:1.4;letter-spacing:0}
.page-heading p{font-size:15px;line-height:1.6;color:var(--muted)}
.catalog-intro{display:block;margin:0 0 16px;text-align:center}
.catalog-intro .page-heading{text-align:center!important;margin:0!important}
.catalog-intro .page-heading h1{font-size:29px;line-height:1.35;margin:0 0 5px;color:var(--ink)}
.catalog-intro .page-heading p{font-size:15px;margin:0 auto}
.journey-progress{max-width:450px;margin:0 auto 20px;gap:0}
.journey-progress>li{gap:4px;font-size:13px;color:var(--muted)}
.journey-progress>li::before{top:13px;background:#dbe3ec}
.journey-progress>li>span{width:27px;height:27px;background:#edf1f6;border:0;color:#657083;font-size:13px}
.journey-progress>li[data-current="true"]{color:var(--accent);font-weight:700}
.journey-progress>li[data-current="true"]>span{box-shadow:none}
body[data-provider=""] .journey-progress>li.complete>span{background:#edf3fd;border-color:#d8e4fa;color:#2463c5}
/* Reason: normal and single-card purchases share one neutral list without hidden product groups or editorial promotions. */
.catalog-tabs.simple-path-tabs{display:flex;gap:0;width:100%;margin:0 0 14px;padding:0;border:1px solid #dce4ef;border-radius:8px;overflow:hidden;background:#f1f5f9}
.catalog-tabs.simple-path-tabs::before{display:none}
.simple-path-tabs button{flex:1;min-height:44px;padding:8px 10px;border:0;border-radius:7px;background:transparent;color:#142d4e;font-size:15px;font-weight:700;line-height:1.4}
.simple-path-tabs button[aria-pressed="true"]{background:#2463c5;color:#fff}
/* Reason: customers should see the existing minimum before choosing a card, not discover it below the full list. */
.catalog-minimum{margin:0 0 10px;font-size:14px;line-height:1.5;color:#657083}
.product-list{display:flex;flex-direction:column;gap:0;border:1px solid #dfe6ee;border-radius:9px;overflow:hidden;background:#fff}
.product-row{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;min-height:80px;margin:0;padding:8px 16px;border:0;border-bottom:1px solid #e1e7ee;border-radius:0;box-shadow:none;background:#fff}
.product-row:last-child{border-bottom:0}
.product-row::before,.product-row::after{display:none}
.product-row.selected,body[data-provider=""] .product-row.selected{border-color:#e1e7ee;background:#f1f6ff;box-shadow:inset -3px 0 #2463c5}
.product-copy{min-width:0;flex:1}
.product-copy h3{min-height:0;margin:0;font-size:21px;line-height:1.4;color:#142d4e}
.product-spec{font-size:14px;line-height:1.5;color:#657083;margin:4px 0 0}
.product-purchase{flex:0 0 120px;width:120px;display:flex;flex-direction:column;align-items:stretch;gap:3px;margin:0}
.product-price{display:flex;justify-content:center;align-items:baseline;gap:4px;width:auto;min-height:0;padding:0;border:0;color:#142d4e;line-height:1.25;white-space:nowrap}
.product-price strong{font-size:22px;line-height:1.2}
.product-price small{font-size:16px;color:#142d4e;font-weight:700}
.select-card{width:100%;min-height:44px;padding:6px 10px;border:1px solid #2463c5;border-radius:7px;background:#fff;color:#2463c5;font-size:16px;font-weight:700;line-height:1.3}
.select-card[aria-pressed="true"]{background:#2463c5;color:#fff}
.select-card:disabled{border-color:#c9d2df;color:#657083;background:#f3f6fa;opacity:1;font-size:13px}
.stepper{display:flex;width:120px;min-height:44px;height:44px;padding:0;border:1px solid #c9d8ef;border-radius:7px;overflow:hidden;background:#fff}
.stepper button{width:44px;flex:0 0 44px;height:44px;min-height:44px;padding:0;border:0;border-radius:6px;font-size:21px;color:#2463c5;background:#fff}
.stepper output{flex:1;min-width:0;text-align:center;font-size:15px;align-self:center}
.product-row.selected .stepper button[data-action="add"],body[data-provider=""] .product-row.selected .stepper button[data-action="add"]{background:#2463c5;color:#fff}
.catalog-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin:10px 0 0;font-size:13px;color:#657083}
.catalog-toolbar>span{padding-block:10px;white-space:nowrap}
.purchase-guide{font-size:14px;color:#2463c5}
.purchase-guide summary{min-height:44px;padding:8px 0;color:#2463c5}
.purchase-guide[open]{padding:0 12px 10px}
.purchase-guide ol{font-size:13px;line-height:1.8}
.quick-payment-note{margin:10px 0 0;font-size:13px;color:#657083}
/* Reason: the persistent total is compact and readable while every purchase action retains a 44px touch target. */
.sticky-checkout{position:fixed;inset-inline:0;bottom:0;max-width:720px;width:100%;padding:12px 16px calc(12px + env(safe-area-inset-bottom));gap:12px;border:0;border-top:1px solid #dce4ee;border-radius:0;background:#fff;box-shadow:0 -3px 12px #142d4e08}
.sticky-checkout>button{flex:0 1 48%;min-height:46px;margin:0;padding:10px 12px;border-radius:8px;font-size:16px;line-height:1.4;box-shadow:none}
.sticky-checkout>.empty-state{flex:1;margin:0;padding:0;color:#657083;font-size:14px;text-align:start}
.sticky-checkout .cart-summary{flex:1;min-width:0;gap:1px;line-height:1.4}
.cart-summary strong{font-size:20px;color:#142d4e}
.cart-summary>span{font-size:12px;color:#657083}
/* Reason: the add-more instruction stays legible on narrow screens and is distinct from remaining wallet credit. */
.cart-summary>span.minimum-hint{font-size:13px;line-height:1.5}
.primary:disabled{opacity:1;background:#86ace7;border-color:#86ace7;color:#fff;cursor:not-allowed}
body[data-step="catalog"],body[data-step="wallet"]{padding-bottom:calc(var(--checkout-height,78px) + 12px)}
.support-panel{margin:3px 0 0;padding:0}
.support-row{font-size:12px;text-align:center;color:#657083}
.site-footer{max-width:720px;margin-block:10px;padding-block:10px;border-top:0;text-align:center;font-size:11px;color:#7b8796}
/* Reason: the existing checkout states keep their behavior in the same compact typography and spacing system. */
.primary,a.primary{min-height:46px;font-size:16px;border-radius:8px;box-shadow:none}
.secondary,.text-button{min-height:44px;font-size:14px;border-radius:8px}
.panel,.checkout-card{padding:20px;border-radius:12px;border:1px solid #e1e7ee;border-top:3px solid var(--accent);box-shadow:none}
.checkout-card .page-heading{margin-bottom:18px}
.field{gap:7px;margin-bottom:15px}
.field label{font-size:15px}
.field input,.phone-input{height:50px;border-radius:8px;font-size:21px;background:#f7f9fc}
.field input::placeholder{font-size:19px}
.phone-order-summary{margin-bottom:16px;padding:9px 12px;font-size:13px;border-radius:8px}
.phone-order-summary strong{font-size:17px}
.phone-review-note{font-size:13px;margin-block:8px 14px}
.device-options{margin-top:10px;padding-top:3px}
.step-nav{margin-bottom:15px;font-size:12px}
.step-nav .row{gap:8px}
.checkout-card .actions{margin-top:18px}
dialog.modal{max-height:calc(100dvh - 32px);width:min(430px,calc(100% - 28px));padding:20px;border-top:3px solid #142d4e;border-radius:14px;overflow:auto}
.modal-heading{padding-bottom:12px}
.modal-heading h2{font-size:23px}
.summary-list{gap:8px;margin-block:14px}
.summary-line{font-size:14px}
.total-row{margin-top:12px;padding-block:12px}
.total-row strong{font-size:25px}
.provider-option{min-height:62px;padding:10px 14px;border-radius:9px;font-size:17px}
.provider-option small{font-size:12px}
.dialog-actions{margin-top:10px}
.entry-intro{margin-bottom:18px}
.entry-intro h1{font-size:28px}
.entry-intro p{font-size:14px}
.pending-strip{padding:12px;border-radius:9px;font-size:13px;gap:10px;margin-bottom:16px}
.pending-strip button{flex:0 0 auto;font-size:13px}
.transfer-total{margin-bottom:18px;padding-bottom:16px}
.transfer-total strong{font-size:30px}
.transfer-steps{gap:15px;margin-bottom:20px}
.transfer-steps li{font-size:14px;padding-inline-start:38px}
.transfer-steps li p{font-size:12px}
.transfer-details{font-size:13px;padding-top:12px}
.internet-card{padding:18px;border-radius:12px;box-shadow:none}
.card-header h3{font-size:18px}
.credential strong{font-size:22px}
.internet-card .card-actions>.primary{min-height:44px;font-size:15px}
.receipt-heading .page-heading h1{font-size:28px}
.status-badge{background:#eef2f7;color:#526174}
.history-empty>svg{color:#2463c5}
.toast{border-radius:9px;background:#142d4e;font-size:14px}
/* Reason: remaining order credit is a readable financial fact, distinct from card status and payment-provider colors. */
.receipt-credit{margin:16px 0;padding:12px 14px;text-align:start;border:1px solid #d2e1f6;border-radius:9px;background:#f2f7ff;color:#142d4e}
.receipt-credit strong{font-size:17px}.receipt-credit p{margin:4px 0 0;font-size:13px;line-height:1.6;color:#566b88}
@media(min-width:760px){.product-row{padding-inline:24px;min-height:86px}.catalog-intro .page-heading h1{font-size:32px}.site-header{min-height:66px}.sticky-checkout{border-inline:1px solid #e1e7ee;border-radius:10px 10px 0 0}.product-purchase{flex-basis:132px;width:132px}.stepper{width:132px}}
@media(max-width:359px){.shell{width:calc(100% - 24px)}.brand{font-size:21px}.header-history,.header-account{padding-inline:8px}.product-row{gap:8px;padding-inline:12px}.product-copy h3{font-size:19px}.product-spec{font-size:12px}.product-purchase{flex-basis:112px;width:112px}.stepper{width:112px}.simple-path-tabs button{font-size:13px}.catalog-intro .page-heading h1{font-size:26px}.catalog-intro .page-heading p{font-size:14px}.sticky-checkout{padding-inline:12px}.sticky-checkout>button{font-size:14px}.sticky-checkout>.empty-state{font-size:12px}}
/* Reason: the last-loaded compact layer must preserve normal document flow on short phones and landscape instead of covering the final card. */
@media(max-width:759px) and (max-height:760px){.sticky-checkout{position:static;width:100%;margin-top:16px;box-shadow:none}body[data-step="catalog"],body[data-step="wallet"]{padding-bottom:max(16px,env(safe-area-inset-bottom))}}
