/* Checkout page — mobile marketplace layout (white blocks on a light-grey page, sticky Total + Place Order bar).
   Bagdad colours: green #087f3e / deep #123c29 / gold #c9954d. Loaded last on menu.html. */
html body #checkoutModal.modal{padding:0!important;display:block!important;background:#f2f3f5!important;z-index:10040!important;overflow:hidden!important}
html body #checkoutModal .modal-box.ck-page{width:100%!important;max-width:none!important;height:100vh!important;height:100dvh!important;max-height:none!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#f2f3f5!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}

/* Top bar */
html body #checkoutModal .ck-top{display:flex!important;align-items:center!important;gap:10px!important;height:56px!important;padding:0 12px!important;margin:0!important;background:#fff!important;border-bottom:1px solid #e6e8e6!important;flex:none!important}
html body #checkoutModal .ck-top h2{margin:0!important;padding:0!important;font:500 19px/1 Inter,Arial,sans-serif!important;color:#212121!important}
html body #checkoutModal .modal-close.ck-back:not(#_):not(#_):not(#_){position:static!important;inset:auto!important;transform:none!important;width:40px!important;height:40px!important;min-width:0!important;display:grid!important;place-items:center!important;padding:0!important;background:transparent!important;border:0!important;border-radius:50%!important;box-shadow:none!important;font-size:26px!important;line-height:1!important;color:#212121!important;cursor:pointer}
html body #checkoutModal .modal-close.ck-back:not(#_):not(#_):not(#_):active{background:#f2f3f5!important}

html body #checkoutModal .ck-body{flex:1 1 auto!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;padding:0 0 120px!important;background:#f2f3f5!important}
html body #checkoutModal form#checkoutForm{display:block!important;margin:0 auto!important;max-width:720px!important;padding:0!important;background:transparent!important}
html body #checkoutModal .ck-body>#checkoutSettingsNotice{margin:0!important;border-radius:0!important}

/* White blocks separated by grey gaps */
html body #checkoutModal .ck-sec{display:block!important;background:#fff!important;margin:8px 0 0!important;padding:14px 16px!important;border:0!important;border-radius:0!important;box-shadow:none!important}
html body #checkoutModal .ck-sec:first-child{margin-top:0!important}
html body #checkoutModal .ck-row-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px}
html body #checkoutModal .ck-h{margin:0!important;padding:0!important;font:700 17px/1.2 Inter,Arial,sans-serif!important;color:#1f2d3d!important;background:none!important}

/* Order block: seller line + items */
html body #checkoutModal .ck-seller{display:flex;align-items:center;gap:10px;margin:0 0 12px}
html body #checkoutModal .ck-seller img{width:28px;height:28px;border-radius:6px;object-fit:cover;background:#fff;border:1px solid #e6e8e6}
html body #checkoutModal .ck-seller b{font:800 17px/1 Inter,Arial,sans-serif;color:#1f2d3d;letter-spacing:.01em}
html body #checkoutModal .checkout-items{display:block!important;margin:0!important;gap:0!important}
html body #checkoutModal .checkout-item{display:grid!important;grid-template-columns:84px minmax(0,1fr) auto!important;grid-template-areas:"img name name" "img price qty"!important;gap:4px 12px!important;align-items:start!important;padding:0 0 14px!important;margin:0 0 14px!important;border-bottom:1px solid #eef0ee!important;font-size:14px!important;background:none!important}
html body #checkoutModal .checkout-item:last-child{margin-bottom:0!important;padding-bottom:0!important;border-bottom:0!important}
html body #checkoutModal .checkout-item img{grid-area:img;width:84px!important;height:84px!important;object-fit:cover;border-radius:8px!important;background:#f2f3f5}
html body #checkoutModal .checkout-item .ck-name{grid-area:name;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font:500 15px/1.35 Inter,Arial,sans-serif;color:#212121}
html body #checkoutModal .checkout-item .ck-name small{display:block;margin-top:4px;font:400 14px/1.3 Inter,Arial,sans-serif;color:#757575}
html body #checkoutModal .checkout-item b{grid-area:price;align-self:end;justify-self:start;color:#212121!important;font:700 16px/1 Inter,Arial,sans-serif!important}
html body #checkoutModal .checkout-item .ck-qty{grid-area:qty;align-self:end;justify-self:end;font:700 15px/1 Inter,Arial,sans-serif;color:#212121}

/* Delivery or pickup */
html body #checkoutModal .fulfillment-toggle{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin:0 0 12px!important;padding:0!important;background:none!important}
html body #checkoutModal .fulfillment-btn:not(#_):not(#_):not(#_){display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:3px!important;min-height:58px!important;padding:10px 14px!important;border:1px solid #d8ddd9!important;border-radius:8px!important;background:#fff!important;color:#26352d!important;box-shadow:none!important;text-align:left!important;cursor:pointer}
html body #checkoutModal .fulfillment-btn span{font:700 15px/1.1 Inter,Arial,sans-serif!important;color:inherit!important}
html body #checkoutModal .fulfillment-btn small{font:400 12px/1.2 Inter,Arial,sans-serif!important;color:#757575!important}
html body #checkoutModal .fulfillment-btn.active:not(#_):not(#_):not(#_){border:1.5px solid #087f3e!important;background:#f1faf4!important;color:#087f3e!important}
html body #checkoutModal .fulfillment-btn:disabled{opacity:.45!important;cursor:not-allowed}
html body #checkoutModal .delivery-unavailable-notice{margin:0 0 12px!important;border-radius:8px!important}
html body #checkoutModal .field-hidden{display:none!important}

/* Fields */
html body #checkoutModal .ck-sec label{display:block!important;margin:0 0 12px!important;padding:0!important;font:600 12px/1.3 Inter,Arial,sans-serif!important;color:#6b7580!important}
html body #checkoutModal .ck-sec label:has(#deliveryPayment),html body #checkoutModal .ck-sec label:has(#pickupPayment){display:none!important}
html body #checkoutModal .ck-sec :is(input,select,textarea):not(#couponInput){display:block;width:100%!important;margin:5px 0 0!important;padding:12px!important;min-height:46px;border:1px solid #d8ddd9!important;border-radius:6px!important;font:400 15px/1.3 Inter,Arial,sans-serif!important;color:#212121!important;background:#fff!important;box-shadow:none!important;outline:0!important;box-sizing:border-box}
html body #checkoutModal .ck-sec textarea{min-height:0}
html body #checkoutModal .ck-sec :is(input,select,textarea):focus{border-color:#087f3e!important}
html body #checkoutModal .ck-sec .delivery-info-notice:empty{display:none}
html body #checkoutModal .ck-sec .delivery-info-notice{margin:0 0 4px!important;padding:10px 12px!important;border-radius:6px!important;font-size:13px}

/* Payment methods (cards built by checkout-page.js) */
html body #checkoutModal .ck-pay-sec{padding:14px 0 14px 16px!important}
html body #checkoutModal .ck-pay{padding:0!important;margin:0!important;background:none!important}
html body #checkoutModal .ck-pay-head{display:flex;align-items:center;justify-content:space-between;padding-right:16px;margin-bottom:12px}
html body #checkoutModal .ck-pay h3{margin:0!important;font:700 17px/1.2 Inter,Arial,sans-serif!important;color:#1f2d3d!important}
html body #checkoutModal .ck-pay-row{display:flex;gap:10px;overflow-x:auto;padding:0 16px 2px 0;scrollbar-width:none}
html body #checkoutModal .ck-pay-row::-webkit-scrollbar{display:none}
html body #checkoutModal .ck-pay-card:not(#_):not(#_):not(#_){flex:0 0 auto;min-width:44%;display:block!important;text-align:left!important;padding:14px!important;border:1px solid #d8ddd9!important;border-radius:6px!important;background:#fff!important;font:700 15px/1.2 Inter,Arial,sans-serif!important;color:#1f2d3d!important;box-shadow:none!important;cursor:pointer}
html body #checkoutModal .ck-pay-card small{display:block;margin-top:16px;font:400 13px/1.2 Inter,Arial,sans-serif;color:#757575}
html body #checkoutModal .ck-pay-card.active:not(#_):not(#_):not(#_){border:1.5px solid #087f3e!important;background:#f1faf4!important}
html body #checkoutModal .ck-pay-empty{padding:4px 16px 0 0;font-size:14px;color:#757575}

/* Totals + voucher */
html body #checkoutModal #checkoutTotals{display:block!important;padding:0!important;margin:0!important;background:none!important;border:0!important;box-shadow:none!important}
html body #checkoutModal #checkoutTotals>div{display:flex!important;justify-content:space-between;align-items:baseline;gap:12px;padding:11px 0!important;margin:0!important;font:400 16px/1.3 Inter,Arial,sans-serif!important;color:#212121!important;background:none!important;border:0!important}
html body #checkoutModal #checkoutTotals>div b{font-weight:400!important;color:#212121!important}
html body #checkoutModal #checkoutTotals>div:last-child{font-weight:700!important}
html body #checkoutModal .ck-voucher{display:block!important;margin:4px 0 0!important;padding:10px 0 0!important;background:none!important;border:0!important;border-top:1px solid #eef0ee!important}
html body #checkoutModal .ck-voucher-row{display:flex;align-items:center;gap:10px}
html body #checkoutModal .ck-voucher-ico{flex:0 0 24px;width:24px;height:24px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 8a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v2a2 2 0 0 0 0 4v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2a2 2 0 0 0 0-4z' fill='%23c9954d'/%3E%3Cpath d='M10 9l4 6' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}
html body #checkoutModal .ck-voucher label{flex:0 0 auto;width:auto!important;max-width:none!important;margin:0!important;font:400 16px/1 Inter,Arial,sans-serif!important;color:#212121!important}
html body #checkoutModal .ck-voucher input#couponInput{flex:1 1 0%;min-width:0;width:100%!important;margin:0!important;padding:10px 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;text-align:right;text-transform:uppercase;font:500 15px/1.2 Inter,Arial,sans-serif!important;color:#212121!important;outline:0}
html body #checkoutModal .ck-voucher input#couponInput::placeholder{text-transform:none;color:#9aa0a6}
html body #checkoutModal .ck-voucher .ck-link:not(#_):not(#_):not(#_){flex:0 0 auto;padding:6px 2px!important;min-height:0!important;border:0!important;background:none!important;box-shadow:none!important;color:#087f3e!important;font:700 14px/1 Inter,Arial,sans-serif!important;cursor:pointer}
html body #checkoutModal .ck-voucher input#couponInput:placeholder-shown~#couponRemove{display:none!important}
html body #checkoutModal .ck-voucher small{display:block;margin-top:4px;font-size:13px;color:#6b7580}
html body #checkoutModal .ck-voucher small:empty{display:none}

/* Sticky bottom bar */
html body #checkoutModal .ck-bar{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:5;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:14px!important;margin:0!important;padding:12px 16px calc(12px + env(safe-area-inset-bottom))!important;background:#fff!important;border-top:1px solid #e6e8e6!important;box-shadow:0 -4px 14px rgba(0,0,0,.06)!important}
html body #checkoutModal .ck-bar-total{display:flex;align-items:baseline;gap:8px}
html body #checkoutModal .ck-bar-total small{font:400 16px/1 Inter,Arial,sans-serif;color:#212121}
html body #checkoutModal .ck-bar-total b{font:700 22px/1 Inter,Arial,sans-serif;color:#087f3e}
html body #checkoutModal .ck-bar .ck-place:not(#_):not(#_):not(#_){position:static!important;width:auto!important;min-width:160px;min-height:48px!important;margin:0!important;padding:0 26px!important;border:0!important;border-radius:6px!important;background:#087f3e!important;color:#fff!important;font:700 17px/1 Inter,Arial,sans-serif!important;letter-spacing:0!important;box-shadow:none!important;cursor:pointer}
html body #checkoutModal .ck-bar .ck-place:not(#_):not(#_):not(#_):hover{background:#066b34!important;color:#fff!important}
@media(min-width:760px){html body #checkoutModal .ck-bar{padding-inline:calc((100% - 720px)/2 + 16px)!important}}
