:root{--ink:#1E3A26}
/* ================= CHECKOUT ================= */
.co{--ink:#1E3A26;background:#FBF6EE;padding-bottom:64px;min-height:60vh}
.co .btn{background:var(--ink)}
.co .btn:hover{background:#12281A}
.co .btn.ghost{background:#fff;color:var(--ink);border:1px solid var(--ink)}
.co .btn.ghost:hover{background:var(--green-light)}
.crumbs{display:flex;gap:8px;align-items:center;font-size:11.5px;color:#777;padding:18px 0 10px;flex-wrap:wrap}
.crumbs a:hover{color:var(--ink)}
.crumbs b{color:#222;font-weight:500}
.co-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px;flex-wrap:wrap}
.co-title h1{font-family:var(--serif);color:var(--ink);font-size:34px;font-weight:700}
.secure{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--green);font-weight:500}
.secure svg.i{width:16px;height:16px}

.co-grid{display:grid;grid-template-columns:1fr 380px;gap:28px;align-items:start}

/* steps */
.co-step{padding:0;background:#fff;border:1px solid #EADFCC;border-radius:14px;margin-bottom:16px;overflow:hidden;transition:opacity .2s}
.co-head{display:flex;align-items:center;gap:12px;padding:18px 22px;border-bottom:1px solid #F1E9DB}
.co-step h2{font-size:16px;font-weight:600;flex:1}
.num{width:28px;height:28px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-size:13px;font-weight:600}
.done-ic{display:none;width:24px;height:24px;border-radius:50%;background:var(--green-light);color:var(--green);place-items:center}
.done-ic svg.i{width:14px;height:14px;stroke-width:2.5}
.co-step.done .done-ic{display:grid}
.co-step.locked{opacity:.6}
.co-step.locked .num{background:#bbb}
.co-body{padding:18px 22px 22px}
.co-body>.muted{margin-bottom:14px}
.co-body>.muted:last-child{margin-bottom:0}
.acct-row{display:flex;justify-content:space-between;align-items:center;gap:12px}
.acct-row b{display:block;font-size:15px}
.acct-row span{font-size:13px;color:var(--muted)}

/* addresses */
.addr-list{display:grid;gap:12px;margin-bottom:14px}
.addr-list:empty{display:none}
.addr-card{display:grid;grid-template-columns:auto 36px 1fr auto;gap:12px;align-items:start;border:1.5px solid #EADFCC;border-radius:12px;padding:14px;cursor:pointer;transition:border-color .2s,background .2s}
.addr-card:hover{border-color:#CDBFA6}
.addr-card.on{border-color:var(--ink);background:#F7FAF4}
.addr-card input{margin-top:10px;accent-color:var(--ink);width:16px;height:16px}
.tag-ic{width:36px;height:36px;border-radius:50%;background:var(--green-light);color:var(--green);display:grid;place-items:center}
.tag-ic svg.i{width:17px;height:17px}
.addr-txt b{display:block;font-size:14px;margin-bottom:2px}
.addr-txt span{display:block;font-size:13px;color:#444;line-height:1.5}
.addr-txt small{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.add-addr{display:flex;align-items:center;gap:10px;width:100%;border:1.5px dashed #CDBFA6;border-radius:12px;padding:14px 16px;font-size:14px;font-weight:600;color:var(--ink);transition:.2s}
.add-addr:hover{background:var(--green-light);border-color:var(--ink)}
.add-addr span{width:26px;height:26px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-size:18px;line-height:1}

/* payment */
.pay-methods{display:grid;gap:10px}
.pm{border:1.5px solid #EADFCC;border-radius:12px;overflow:hidden;transition:border-color .2s}
.pm.on{border-color:var(--ink)}
.pm-head{display:flex;align-items:center;gap:12px;padding:14px 16px;cursor:pointer;flex-wrap:wrap}
.pm-head input{accent-color:var(--ink);width:16px;height:16px}
.pm-head svg.i{width:20px;height:20px;color:var(--ink)}
.pm-head b{font-size:14px;font-weight:600}
.pm-head em{font-style:normal;font-size:11.5px;color:var(--muted);margin-left:auto}
.pm[data-m="upi"] .pm-head em{background:var(--green-light);color:var(--green);padding:2px 10px;border-radius:20px;font-weight:600}
.pm-body{display:none;padding:4px 16px 16px 44px}
.pm.on .pm-body{display:block}
.pm-body .field:last-child{margin-bottom:0}
.upi-apps{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:12px}
.upi-apps button{display:flex;flex-direction:column;align-items:center;gap:6px;border:1.5px solid #EADFCC;border-radius:10px;padding:12px 6px;font-size:12px;font-weight:500;transition:.2s;background:#fff}
.upi-apps button:hover{border-color:#CDBFA6}
.upi-apps button.on{border-color:var(--ink);background:#F7FAF4}
.upi-apps i{width:32px;height:32px;border-radius:50%;color:#fff;font-style:normal;font-weight:700;font-size:12px;display:grid;place-items:center}
.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
select.input{appearance:auto}
.co .demo-note{margin:0 0 14px}

/* summary */
.co-summary{position:sticky;top:96px;background:#fff;border:1px solid #EADFCC;border-radius:14px;padding:22px}
.co-summary h3{font-family:var(--serif);font-size:20px;color:var(--ink);margin-bottom:14px}
.sum-item{display:grid;grid-template-columns:52px 1fr auto;gap:12px;align-items:center;padding:8px 0}
.thumb{position:relative;width:52px;height:52px}
.thumb img{width:100%;height:100%;object-fit:cover;border-radius:8px}
.thumb i{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;border-radius:10px;background:var(--ink);color:#fff;font-size:11px;font-style:normal;font-weight:600;display:grid;place-items:center;padding:0 5px}
.sum-item .nm{font-size:13px;line-height:1.35}
.sum-item b{font-size:13.5px}
.edit-cart{margin:6px 0 4px}
.sum-rows{border-top:1px dashed #E3D5BE;margin-top:10px;padding-top:12px}
.sum-rows>div{display:flex;justify-content:space-between;font-size:13.5px;margin-bottom:8px;color:#444}
.sum-rows .save{color:var(--green)}
.sum-rows .free{color:var(--green)}
.sum-rows .hint{font-size:11.5px;color:#8A5A0B;background:#FFF6E3;padding:6px 10px;border-radius:6px;margin:-2px 0 10px}
.sum-rows .total{border-top:1px solid #EADFCC;padding-top:12px;margin-top:6px;font-size:17px;font-weight:600;color:#111}
.co-summary .btn.full{margin-top:14px;height:52px}
.co-summary .btn svg.i{width:16px;height:16px}
.sum-note{text-align:center;font-size:12px;color:var(--muted);margin-top:10px}
.sum-trust{display:flex;justify-content:space-between;gap:6px;margin-top:16px;padding-top:14px;border-top:1px solid #F1E9DB;font-size:11px;color:#555}
.sum-trust span{display:flex;align-items:center;gap:4px}
.sum-trust svg.i{width:14px;height:14px;color:var(--green)}

/* empty + done */
.co-empty,.co-done{max-width:620px;margin:30px auto 0;text-align:center}
.co-empty>svg.i{width:64px;height:64px;color:var(--green);stroke-width:1.1;margin-bottom:10px}
.co-empty h1,.co-done h1{font-family:var(--serif);color:var(--ink);font-size:30px;margin-bottom:8px}
.co-empty p{color:var(--muted);margin-bottom:22px}
.done-badge{width:84px;height:84px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;margin:10px auto 18px;box-shadow:0 0 0 10px var(--green-light);animation:pop .45s cubic-bezier(.2,1.4,.4,1)}
.done-badge svg.i{width:42px;height:42px;stroke-width:2.5}
@keyframes pop{from{transform:scale(.3);opacity:0}to{transform:scale(1);opacity:1}}
.co-done .lead{color:#444;margin-bottom:22px}
.done-card{background:#fff;border:1px solid #EADFCC;border-radius:14px;padding:6px 22px;text-align:left;margin-bottom:22px}
.dc-row{display:flex;gap:14px;padding:16px 0;border-bottom:1px solid #F1E9DB}
.dc-row svg.i{width:22px;height:22px;color:var(--green);margin-top:2px}
.dc-row b{display:block;font-size:14px}
.dc-row span{font-size:13px;color:#555}
.dc-items{padding:12px 0}
.dc-items>div{display:grid;grid-template-columns:44px 1fr auto;gap:12px;align-items:center;padding:6px 0;font-size:13px}
.dc-items img{width:44px;height:44px;object-fit:cover;border-radius:6px}
.done-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}

/* address modal */
.addr-modal .addr-box{max-width:960px;padding:0;display:grid;grid-template-columns:1.1fr 1fr;overflow:hidden;height:min(640px,calc(100vh - 32px))}
.addr-box>.x-btn{z-index:1000;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.addr-map{position:relative;background:#E8E2D6;min-height:260px}
#map{position:absolute;inset:0}
.center-pin{position:absolute;left:50%;top:50%;transform:translate(-50%,-100%);z-index:500;pointer-events:none;display:flex;flex-direction:column;align-items:center;transition:transform .2s}
.center-pin.lift{transform:translate(-50%,-115%)}
.center-pin svg{width:44px;height:44px;fill:var(--red);stroke:#fff;stroke-width:1.2;filter:drop-shadow(0 3px 4px rgba(0,0,0,.3))}
.center-pin .tip{background:#1F2A1C;color:#fff;font-size:12px;font-weight:600;padding:8px 12px;border-radius:8px;margin-bottom:6px;text-align:center;white-space:nowrap;position:relative}
.center-pin .tip small{display:block;font-weight:400;font-size:10.5px;opacity:.8}
.center-pin .tip::after{content:"";position:absolute;left:50%;bottom:-5px;transform:translateX(-50%) rotate(45deg);width:10px;height:10px;background:#1F2A1C}
.center-pin.lift .tip{opacity:.4}
.locate-btn{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);z-index:600;display:flex;align-items:center;gap:8px;background:#fff;color:var(--red);border:1px solid var(--red);font-weight:600;font-size:13px;padding:10px 18px;border-radius:10px;box-shadow:0 4px 14px rgba(0,0,0,.15);white-space:nowrap}
.locate-btn svg.i{width:17px;height:17px}
.locate-btn.busy svg{animation:kvspin 1s linear infinite}
.map-search{position:absolute;top:14px;left:14px;right:64px;z-index:700;display:flex;align-items:center;gap:8px;background:#fff;border-radius:10px;padding:0 12px;box-shadow:0 4px 14px rgba(0,0,0,.15)}
.map-search svg.i{color:#888;width:17px;height:17px}
.map-search input{flex:1;border:0;outline:0;height:44px;font-family:inherit;font-size:13.5px;background:none;min-width:0}
.search-results{position:absolute;top:calc(100% + 6px);left:0;right:0;background:#fff;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.18);max-height:280px;overflow:auto;list-style:none}
.search-results button{display:flex;gap:10px;width:100%;text-align:left;padding:12px 14px;border-bottom:1px solid #F1E9DB}
.search-results button:hover{background:var(--cream)}
.search-results svg.i{width:16px;height:16px;color:#888;margin-top:2px}
.search-results b{display:block;font-size:13px;font-weight:600}
.search-results small{display:block;font-size:11.5px;color:var(--muted);line-height:1.4}
.search-results .none{padding:14px;font-size:13px;color:var(--muted)}
.addr-form{padding:26px 26px 22px;overflow-y:auto}
.addr-form h3{font-family:var(--serif);font-size:22px;color:var(--ink);margin-bottom:14px}
.detected{display:flex;gap:10px;background:var(--cream);border:1px solid #EADFCC;border-radius:10px;padding:12px 14px;margin-bottom:18px}
.detected svg.i{width:20px;height:20px;color:var(--red);flex-shrink:0;margin-top:2px}
.detected b{display:block;font-size:14px}
.detected span{display:block;font-size:12px;color:var(--muted);line-height:1.45}
.addr-form .field{margin-bottom:12px}
.addr-form .input{height:44px}
.tag-chips{display:flex;gap:10px;flex-wrap:wrap}
.tag-chips button{display:flex;align-items:center;gap:6px;border:1.5px solid #EADFCC;border-radius:30px;padding:8px 16px;font-size:13px;font-weight:500;background:#fff;transition:.2s}
.tag-chips button svg.i{width:15px;height:15px}
.tag-chips button.on{border-color:var(--ink);background:var(--ink);color:#fff}
.addr-form .btn.full{background:var(--ink);margin-top:4px}
.leaflet-container{font-family:var(--sans)}

/* payment processing */
.pay-box{text-align:center;max-width:360px;padding:36px 28px}
.pay-box h3{font-size:20px!important}
.pay-spin{width:56px;height:56px;border-radius:50%;border:4px solid var(--green-light);border-top-color:var(--green);margin:0 auto 18px;animation:kvspin .9s linear infinite}
.pay-modal .kv-modal-box{border-radius:16px}

/* add-ons, offers, preferences */
.opt{font-style:normal;font-size:11px;color:var(--muted);background:var(--beige);padding:2px 10px;border-radius:20px}
.x-block{padding:16px 0;border-bottom:1px solid #F1E9DB}
.x-block:first-child{padding-top:0}
.x-block:last-child{border-bottom:0;padding-bottom:0}
.x-block h4{font-size:14px;font-weight:600;margin-bottom:2px}
.x-block>.muted{margin-bottom:12px}
.addons{display:flex;gap:12px;overflow-x:auto;padding:4px 2px 8px;scroll-snap-type:x proximity}
.addon{flex:0 0 150px;scroll-snap-align:start;border:1.5px solid #EADFCC;border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:4px;background:#fff}
.addon img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px}
.addon b{font-size:12.5px;font-weight:500;line-height:1.3;min-height:32px}
.addon span{font-size:12.5px;font-weight:600}
.addon del{color:#aaa;font-weight:400;margin-left:2px}
.btn-sm{padding:7px 14px;font-size:12.5px;justify-content:center}
.coupon-row{display:flex;gap:10px;margin-top:10px}
.coupon-row .input{text-transform:uppercase;letter-spacing:1px;height:46px}
.coupon-row .btn{height:46px;padding:0 22px;border-radius:8px}
.offer-chips{display:flex;gap:8px;flex-wrap:wrap}
.offer-chips button{text-align:left;border:1.5px dashed #CDBFA6;border-radius:10px;padding:8px 12px;background:#FDFBF6;transition:.2s;max-width:100%}
.offer-chips button:hover{border-color:var(--ink);background:var(--green-light)}
.offer-chips b{display:block;font-size:12.5px;color:var(--ink);letter-spacing:.8px}
.offer-chips span{display:block;font-size:11.5px;color:var(--muted)}
.coupon-on{display:flex;align-items:center;gap:12px;background:var(--green-light);border-radius:10px;padding:12px 14px;margin-top:10px}
.coupon-on>svg.i{width:22px;height:22px;color:var(--green);flex-shrink:0}
.coupon-on div{flex:1}
.coupon-on b{display:block;font-size:13.5px}
.coupon-on span{font-size:12px;color:#444}
.toggle-row{display:flex;gap:12px;align-items:flex-start;cursor:pointer;margin:10px 0}
.toggle-row input{accent-color:var(--ink);width:18px;height:18px;margin-top:2px}
.toggle-row b{display:block;font-size:13.5px;font-weight:500}
.toggle-row small{display:block;font-size:12px;color:var(--muted)}
.instr-chips{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 14px}
.instr-chips button{border:1.5px solid #EADFCC;border-radius:30px;padding:7px 14px;font-size:12.5px;background:#fff;transition:.2s}
.instr-chips button.on{border-color:var(--ink);background:var(--ink);color:#fff}
.def{font-style:normal;font-size:10px;font-weight:600;background:var(--green-light);color:var(--green);padding:1px 8px;border-radius:10px;margin-left:6px;vertical-align:1px}
.addr-card .acts{display:flex;gap:2px}
.addr-card .acts .rm:hover{color:var(--ink)}

@media (max-width:1000px){
  .co-grid{grid-template-columns:1fr}
  .co-summary{position:static}
}
@media (max-width:760px){
  .addr-modal{padding:0;align-items:stretch}
  .addr-modal .addr-box{grid-template-columns:1fr;grid-template-rows:300px 1fr;height:100%;max-height:none;border-radius:0}
}
@media (max-width:640px){
  .co-title h1{font-size:26px}
  .co-head{padding:16px}
  .co-body{padding:16px}
  .addr-card{grid-template-columns:auto 1fr auto;padding:12px}
  .addr-card .tag-ic{display:none}
  .pm-body{padding:4px 14px 14px}
  .pm-head em{margin-left:28px;width:100%}
  .upi-apps{grid-template-columns:repeat(2,1fr)}
  .two{grid-template-columns:1fr;gap:0}
  .sum-trust{flex-wrap:wrap;justify-content:center;gap:12px}
  .addr-form{padding:20px 16px}
  .pay-modal{align-items:center;padding:16px}
  .pay-modal .kv-modal-box{border-radius:16px}
}

/* payment hints (the payment window itself is Razorpay's) */
.upi-apps .pill-ic{display:flex;flex-direction:column;align-items:center;gap:6px;border:1.5px solid #EADFCC;border-radius:10px;padding:12px 6px;font-size:12px;font-weight:500;background:#fff}
.upi-apps .pill-ic i{width:32px;height:32px;border-radius:50%;color:#fff;font-style:normal;font-weight:700;font-size:12px;display:grid;place-items:center}
.pending-pay{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:#FFF6E3;border:1px solid #E3BD72;border-radius:12px;padding:14px 18px;margin-bottom:16px}
.pending-pay b{display:block;font-size:14px}
.pending-pay span{font-size:12.5px;color:#6F5212}
.ship-info{display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:var(--green-light);border-radius:10px;padding:12px 14px;margin-top:14px;font-size:13px}
.ship-info svg.i{width:20px;height:20px;color:var(--green)}
.ship-info a{color:var(--green);font-weight:600;text-decoration:underline}

/* keep "Save Address" always visible: it sticks to the bottom of the scrolling form */
.addr-form{padding-bottom:0}
.addr-form .btn.full{position:sticky;bottom:0;z-index:5;margin:8px 0 0;box-shadow:0 -16px 14px -2px #fff,0 22px 0 0 #fff}

/* mobile: never let long content (add-ons row, addresses, coupon chips) stretch the page wider than the screen */
.co-grid>*,.co-steps,.co-step,.co-body{min-width:0}
.co-grid{grid-template-columns:minmax(0,1fr) 380px}
@media (max-width:1000px){.co-grid{grid-template-columns:minmax(0,1fr)}}
.co,.ac{overflow-x:clip}
.addr-txt,.addr-txt *{overflow-wrap:anywhere}
.offer-chips button{max-width:100%}
.addons{max-width:100%}
