/* =====================================================================
   Neuron Tech — cart, checkout, order status & tracking
   Uses the theme tokens from site.css. Mobile first; the two-column
   layouts collapse to one column under 992px.
   ===================================================================== */
.nt-js .js-hide { display: none !important; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .02em; }
.link-btn { border: 0; background: none; padding: 0; color: var(--nt-blue-deep); font-weight: 600; font-size: .86rem; display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--nt-danger); }
.muted { color: var(--nt-muted); }

/* header cart badge */
/* the cart button carries a label: pin the count to the bag icon, not the button corner */
.nt-cart .count { right: auto; left: 22px; top: 2px; }
.nt-cart .count.bump { animation: cartBump .45s ease; }
@keyframes cartBump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* status chips (public) */
.st-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.st-chip.st-ok { background: #E3F5EC; color: var(--nt-ok); }
.st-chip.st-wait { background: #FCF1DC; color: #8A5300; }
.st-chip.st-info { background: var(--nt-blue-soft); color: var(--nt-blue-deep); }
.st-chip.st-bad { background: #FBE7E3; color: #9B2C1E; }
.st-chip.st-muted { background: #EEF0F5; color: var(--nt-muted); }

/* ---------- money summary list ---------- */
.sum { display: grid; grid-template-columns: 1fr auto; gap: .45rem 1rem; margin: 0 0 1rem; font-size: .93rem; }
.sum dt { font-weight: 500; color: var(--nt-ink-2); display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.sum dd { margin: 0; text-align: right; font-weight: 700; color: var(--nt-ink); }
.sum dd.muted { font-weight: 500; color: var(--nt-muted); }
.sum dd.save { color: var(--nt-ok); }
.sum .total { border-top: 1px dashed var(--nt-line-2); padding-top: .6rem; margin-top: .2rem; font-size: 1.05rem; font-weight: 800; color: var(--nt-ink); }

/* ---------- cart ---------- */
.cart-notices { display: flex; gap: .7rem; background: var(--nt-blue-soft); border: 1px solid #C9D6FF; color: var(--nt-ink); border-radius: var(--nt-radius-sm); padding: .8rem 1rem; margin-bottom: 1.1rem; }
.cart-notices > i { color: var(--nt-blue-deep); font-size: 1.15rem; }
.cart-notices ul { margin: 0; padding-left: 1rem; font-size: .92rem; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.4rem; align-items: start; }
.cart-store { padding: .4rem 1.1rem .2rem; }
.cart-store-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .7rem 0; border-bottom: 1px solid var(--nt-line); }
.cart-store-head > i { color: var(--nt-blue); }
.cart-store-head a { font-weight: 800; color: var(--nt-ink); text-decoration: none; }
.cart-store-head .sub { font-size: .8rem; color: var(--nt-muted); margin-left: auto; }
.cart-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--nt-line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .thumb, .saved-item .thumb { width: 84px; height: 84px; border-radius: 12px; background: #fff; border: 1px solid var(--nt-line); display: grid; place-items: center; overflow: hidden; color: var(--nt-line-2); font-size: 1.6rem; }
.cart-line .thumb img, .saved-item .thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-line .info { min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.cart-line .title, .saved-item .title { font-weight: 700; color: var(--nt-ink); text-decoration: none; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-line .title:hover, .saved-item .title:hover { color: var(--nt-blue-deep); }
.cart-line .variant, .saved-item .variant { font-size: .82rem; color: var(--nt-muted); }
.cart-line .price { display: flex; gap: .5rem; align-items: baseline; font-weight: 800; color: var(--nt-ink); }
.cart-line .price s { font-weight: 500; font-size: .85rem; color: var(--nt-muted); }
.cart-line .problem { margin: .2rem 0 0; color: var(--nt-danger); font-weight: 600; font-size: .86rem; display: flex; gap: .35rem; align-items: center; }
.cart-line .low { margin: 0; color: var(--nt-warn); font-size: .82rem; font-weight: 600; }
.cart-line.has-problem .thumb { opacity: .55; }
.line-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .35rem; }
.line-actions form { margin: 0; }
.qty-col { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.qty-sm .qty-btn { min-height: 36px; width: 34px; font-size: 1rem; }
.qty-sm input { width: 38px; }
form.saving { opacity: .6; pointer-events: none; }
.line-total { font-size: 1.02rem; color: var(--nt-ink); }
.cart-summary { padding: 1.3rem; position: sticky; top: 96px; }
.cart-summary h2, .co-summary h2 { font-weight: 800; margin-bottom: 1rem; }
.trust { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .45rem; font-size: .82rem; color: var(--nt-muted); }
.trust i { color: var(--nt-ok); margin-right: .4rem; }
.saved-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .9rem; }
.saved-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: .8rem; padding: .9rem; }
.saved-item .thumb { width: 64px; height: 64px; }
.saved-item .info { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.saved-item .money { font-weight: 800; color: var(--nt-ink); }

/* ---------- checkout ---------- */
.co-steps { display: flex; gap: 1.4rem; list-style: none; padding: 0; margin: .6rem 0 0; font-weight: 700; font-size: .88rem; color: var(--nt-muted); flex-wrap: wrap; }
.co-steps li { display: flex; align-items: center; gap: .45rem; }
.co-steps span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--nt-ink); color: var(--nt-lime); font-size: .78rem; }
.co-alert { display: flex; gap: .7rem; align-items: flex-start; background: #FBE7E3; border: 1px solid #F1C4BB; color: #7E2316; border-radius: var(--nt-radius-sm); padding: .85rem 1rem; margin-bottom: 1.1rem; font-weight: 600; }
.co-alert.warn { background: #FCF1DC; border-color: #F0D9A8; color: #6B4100; }
.co-alert > i { font-size: 1.15rem; }
.co-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.4rem; align-items: start; }
.co-side { position: sticky; top: 96px; }
.co-card { padding: 1.3rem; }
.co-h { display: flex; align-items: center; gap: .6rem; font-size: 1.08rem; font-weight: 800; margin-bottom: 1rem; color: var(--nt-ink); }
.co-h .n { width: 28px; height: 28px; border-radius: 50%; background: var(--nt-lime); color: var(--nt-ink); display: grid; place-items: center; font-size: .85rem; }
.co-hint { display: flex; gap: .5rem; color: var(--nt-muted); margin: 0 0 .8rem; }
.co-err { display: flex; gap: .45rem; align-items: flex-start; color: var(--nt-danger); font-weight: 600; font-size: .88rem; margin: .5rem 0 0; }
.co-ok { display: flex; gap: .45rem; align-items: center; color: var(--nt-ok); font-weight: 600; margin: .4rem 0 0; }
.co-note { display: flex; gap: .5rem; background: var(--nt-lime-soft); border-radius: var(--nt-radius-sm); padding: .7rem .9rem; font-size: .88rem; color: #3D4A00; }
.addr-chips { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.addr-chip { border: 1.5px solid var(--nt-line-2); background: #fff; border-radius: 12px; padding: .55rem .8rem; text-align: left; max-width: 240px; display: flex; flex-direction: column; gap: .1rem; }
.addr-chip b { font-size: .85rem; color: var(--nt-ink); }
.addr-chip span { font-size: .78rem; color: var(--nt-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 210px; }
.addr-chip.active { border-color: var(--nt-blue); box-shadow: 0 0 0 3px var(--nt-blue-soft); }
.otp-box .input-group-text.ok { background: #E3F5EC; color: var(--nt-ok); font-weight: 700; gap: .3rem; border-color: #BFE5D2; }
.otp-msg { font-size: .8rem; color: var(--nt-muted); margin: .35rem 0 0; min-height: 1.1em; }
.otp-msg.bad { color: var(--nt-danger); }
.co-pkg { border: 1px solid var(--nt-line); border-radius: 12px; padding: .9rem 1rem 1rem; margin: 0 0 .9rem; min-width: 0; }
.co-pkg:last-of-type { margin-bottom: 0; }
.co-pkg legend { float: none; width: auto; font-size: .92rem; padding: 0 .4rem; margin: 0 0 .4rem -.4rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.co-pkg legend .tag, .pkg-head .tag { background: var(--nt-ink); color: #fff; border-radius: 999px; padding: .1rem .55rem; font-size: .72rem; font-weight: 800; }
.co-pkg legend .from { font-size: .8rem; color: var(--nt-muted); font-weight: 500; }
.co-items { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; gap: .45rem; }
.co-items li, .pkg-items li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: .7rem; align-items: center; font-size: .88rem; }
.co-items img, .co-items .ph { width: 44px; height: 44px; border-radius: 9px; object-fit: contain; background: #fff; border: 1px solid var(--nt-line); display: grid; place-items: center; color: var(--nt-line-2); }
.co-items .t, .pkg-items .t { min-width: 0; display: flex; flex-direction: column; color: var(--nt-ink); font-weight: 600; line-height: 1.3; }
.co-items .t small, .pkg-items .t small { color: var(--nt-muted); font-weight: 500; }
.co-items .q, .pkg-items .q { color: var(--nt-muted); white-space: nowrap; }
.co-options, .co-pay { display: grid; gap: .5rem; }
.co-option { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "r m fee" "r w fee"; gap: 0 .7rem; align-items: center; border: 1.5px solid var(--nt-line-2); border-radius: 12px; padding: .65rem .85rem; cursor: pointer; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.co-option input { grid-area: r; width: 1.1rem; height: 1.1rem; accent-color: var(--nt-blue); }
.co-option .m { grid-area: m; font-weight: 700; color: var(--nt-ink); display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; }
.co-option .w { grid-area: w; font-size: .8rem; color: var(--nt-muted); }
.co-option .fee { grid-area: fee; font-weight: 800; color: var(--nt-ink); }
.co-option.on, .co-option:has(input:checked) { border-color: var(--nt-blue); box-shadow: 0 0 0 3px var(--nt-blue-soft); }
.co-option.off { opacity: .55; cursor: not-allowed; background: var(--nt-paper); }
.pay-logo { display: inline-block; border-radius: 6px; padding: .05rem .45rem; font-size: .72rem; font-weight: 800; color: #fff; letter-spacing: .02em; }
.pay-logo.bkash { background: #E2136E; }
.pay-logo.nagad { background: #EC1C24; }
.co-advance { margin-top: .9rem; border: 1px dashed var(--nt-blue); background: var(--nt-blue-soft); border-radius: 12px; padding: .9rem 1rem; }
.co-advance .amt { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; margin-bottom: .4rem; }
.co-advance .amt b { font-size: 1.3rem; color: var(--nt-ink); }
.co-advance ol { padding-left: 1.1rem; font-size: .88rem; margin-bottom: .7rem; }
.co-summary { padding: 1.3rem; }
.co-coupon { border-top: 1px solid var(--nt-line); padding-top: .9rem; margin-bottom: .6rem; }
.co-points { border-top: 1px solid var(--nt-line); padding-top: .8rem; margin-bottom: .6rem; }
.co-points .form-check-label { font-weight: 600; }
.co-accept { margin: 1rem 0 .8rem; }
form.is-quoting [data-region] { opacity: .6; transition: opacity .15s ease; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border: 2.5px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- product page: delivery estimate ---------- */
.est { margin-top: .6rem; display: grid; gap: .4rem; max-width: 360px; }
.est-label { font-size: .8rem; font-weight: 700; color: var(--nt-ink); display: flex; gap: .35rem; align-items: center; }
.est-out { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.est-out li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .5rem; align-items: baseline; font-size: .82rem; }
.est-out li b { color: var(--nt-ink); }
.est-out li .when { color: var(--nt-muted); }
.est-out li .fee { font-weight: 800; color: var(--nt-ink); }
.est-out li.off { opacity: .6; }
.est-out li.muted { display: block; color: var(--nt-muted); }

/* ---------- order status (thank-you, tracking, My orders) ---------- */
.ord-wrap { max-width: 980px; }
.ord { display: grid; gap: 1rem; }
.done-hero { display: flex; gap: 1.1rem; align-items: center; }
.done-mark { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; background: var(--nt-lime); color: var(--nt-ink); box-shadow: 0 0 0 8px var(--nt-lime-soft); }
.ord-head { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding: 1.1rem 1.3rem; }
.ord-head > div { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; min-width: 0; }
.ord-head .lbl { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--nt-muted); }
.ord-head b { font-size: 1.02rem; color: var(--nt-ink); }
.ord-banner { display: flex; gap: .9rem; align-items: flex-start; border-radius: var(--nt-radius); padding: 1rem 1.2rem; border: 1px solid var(--nt-line); background: var(--nt-card); }
.ord-banner > i { font-size: 1.5rem; line-height: 1; }
.ord-banner > div { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.ord-banner b { color: var(--nt-ink); }
.ord-banner span { color: var(--nt-muted); font-size: .9rem; }
.ord-banner.bad { background: #FDF1EE; border-color: #F1C4BB; }
.ord-banner.bad > i { color: var(--nt-danger); }
.ord-banner.pay { background: var(--nt-blue-soft); border-color: #C9D6FF; }
.ord-banner.pay > i { color: var(--nt-blue-deep); }
.ord-banner.call { background: var(--nt-lime-soft); border-color: #E0EFA8; }
.ord-banner.call > i { color: #4A5A00; }
.pay-numbers { display: flex; gap: 1rem; flex-wrap: wrap; margin: .6rem 0; }
.pay-numbers > span { display: inline-flex; gap: .45rem; align-items: center; background: #fff; border-radius: 10px; padding: .35rem .7rem; border: 1px solid var(--nt-line); }
.trx-form { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr) auto; gap: .5rem; margin-top: .3rem; }
.ord-pkg { padding: 1.1rem 1.3rem; }
.ord-pkg.cancelled { opacity: .7; }
.pkg-head { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .9rem; }
.pkg-head b { color: var(--nt-ink); }
.pkg-head .method { font-size: .82rem; color: var(--nt-muted); display: inline-flex; gap: .3rem; align-items: center; }
.pkg-steps { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; grid-template-columns: repeat(var(--steps), minmax(0, 1fr)); }
.pkg-steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; font-size: .74rem; color: var(--nt-muted); padding: 0 .2rem; }
.pkg-steps li::before { content: ""; position: absolute; top: 8px; left: -50%; right: 50%; height: 3px; background: var(--nt-line); z-index: 0; }
.pkg-steps li:first-child::before { display: none; }
.pkg-steps .dot { position: relative; z-index: 1; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--nt-line-2); }
.pkg-steps li.done::before, .pkg-steps li.now::before { background: var(--nt-blue); }
.pkg-steps li.done .dot { background: var(--nt-blue); border-color: var(--nt-blue); }
.pkg-steps li.now .dot { border-color: var(--nt-blue); box-shadow: 0 0 0 4px var(--nt-blue-soft); }
.pkg-steps li.now { color: var(--nt-ink); font-weight: 800; }
.pkg-edd { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; font-size: .9rem; color: var(--nt-muted); margin: 0 0 .7rem; }
.pkg-edd b { color: var(--nt-ink); }
.pkg-items { list-style: none; padding: .7rem 0 0; margin: 0; border-top: 1px solid var(--nt-line); display: grid; gap: .55rem; }
.pkg-items li { grid-template-columns: 52px minmax(0, 1fr) auto auto auto; }
.pkg-items img, .pkg-items .ph { width: 52px; height: 52px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--nt-line); display: grid; place-items: center; color: var(--nt-line-2); }
.pkg-items li.gone { opacity: .55; }
.pkg-items li.gone .money { text-decoration: line-through; }
.pkg-items form { margin: 0; }
.pkg-items .acts { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.pkg-fee { margin: .7rem 0 0; font-size: .85rem; color: var(--nt-muted); display: flex; justify-content: space-between; }
.ord-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ord-events { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.ord-events li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: .8rem; font-size: .88rem; }
.ord-events time { color: var(--nt-muted); font-variant-numeric: tabular-nums; }
.track-form { padding: 1.4rem; }

/* ---------- small screens ---------- */
@media (max-width: 991.98px) {
    .cart-layout, .co-layout { grid-template-columns: minmax(0, 1fr); }
    .cart-summary, .co-side { position: static; }
    .ord-head { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .cart-line { grid-template-columns: 64px minmax(0, 1fr); }
    .cart-line .thumb { width: 64px; height: 64px; }
    .qty-col { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
    .cart-store-head .sub { margin-left: 0; width: 100%; }
    .ord-grid { grid-template-columns: minmax(0, 1fr); }
    .trx-form { grid-template-columns: minmax(0, 1fr); }
    .ord-events li { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
    .pkg-steps li { font-size: .66rem; }
    .pkg-items li { grid-template-columns: 44px minmax(0, 1fr) auto; }
    .pkg-items li .q { grid-column: 2; }
    .pkg-items img, .pkg-items .ph { width: 44px; height: 44px; }
    .pkg-items .acts { grid-column: 2 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .2rem 1rem; }
    .co-items li { grid-template-columns: 40px minmax(0, 1fr) auto; }
    .co-items li .q { display: none; }
    .done-hero { align-items: flex-start; }
    .done-mark { width: 48px; height: 48px; font-size: 1.5rem; }
    .co-steps { gap: .9rem; }
}

/* ---------- My account: orders & addresses ---------- */
.my-orders { display: grid; gap: .7rem; }
.my-order { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .9rem 1.1rem; color: inherit; text-decoration: none; }
.my-order .thumb { width: 64px; height: 64px; border-radius: 12px; background: #fff; border: 1px solid var(--nt-line); display: grid; place-items: center; overflow: hidden; color: var(--nt-line-2); font-size: 1.4rem; }
.my-order .thumb img { width: 100%; height: 100%; object-fit: contain; }
.my-order .what { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.my-order .what b { color: var(--nt-ink); }
.my-order .title { color: var(--nt-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-order small { color: var(--nt-muted); }
.my-order .right { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.my-order .right .money { color: var(--nt-ink); }
.my-order .hold { font-size: .75rem; color: #8A5300; }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .9rem; }
.addr-card.is-default { border-color: var(--nt-lime-deep); }
@media (max-width: 575.98px) {
    .my-order { grid-template-columns: 52px minmax(0, 1fr); }
    .my-order .thumb { width: 52px; height: 52px; }
    .my-order .right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- checkout: total bar on small screens ---------- */
.co-mbar { display: none; }
@media (max-width: 991.98px) {
    .co-mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; align-items: center; justify-content: space-between; gap: .8rem;
        padding: .65rem 16px calc(.65rem + env(safe-area-inset-bottom)); background: var(--nt-card); border-top: 1px solid var(--nt-line); box-shadow: 0 -8px 24px -16px rgba(11, 16, 36, .35); }
    .co-mbar > div { display: flex; flex-direction: column; line-height: 1.15; }
    .co-mbar span { font-size: .75rem; color: var(--nt-muted); }
    .co-mbar b { font-size: 1.15rem; color: var(--nt-ink); }
    body:has(.co-mbar) { padding-bottom: 76px; }
}

/* ---- P7b: "would you recommend us" score on the order page ---- */
.nps-scale { display: flex; flex-wrap: wrap; gap: .3rem; }
.nps-scale .btn { min-width: 2.4rem; }
.nps-ends { display: flex; justify-content: space-between; max-width: 32rem; font-size: .75rem; color: var(--nt-muted); margin-top: .2rem; }
