/* Customer task layouts. Loaded after the legacy storefront styles. */
.ux-card{background:#fff;border:1px solid var(--bda-line,#e4e9f0);border-radius:14px;padding:24px;margin-bottom:20px}
.ux-card h1,.ux-card h2,.ux-card h3{margin-top:0;color:var(--bda-navy,#0b2545)}
.ux-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.ux-actions{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}
.ux-actions a,.ux-actions button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:8px}
.ux-muted{color:#526176}.ux-field{margin-bottom:16px}.ux-field label{display:block;margin-bottom:6px}
.ux-field input,.ux-field select,.ux-field textarea{width:100%;min-height:44px}
.ux-form{max-width:760px}.ux-error{color:#a32020;background:#fff0f0;padding:14px;border-radius:8px;margin-bottom:16px}
.ux-success{color:#176738;background:#edf9f0;padding:14px;border-radius:8px;margin-bottom:16px}
.ux-order{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #e4e9f0;padding:18px 0}
.ux-order p{margin:5px 0}.ux-card h2.ux-order-title{font-size:20px;word-break:break-word}
@media(max-width:600px){.ux-card h1{font-size:26px}}.ux-stat{font-size:28px;font-weight:700;color:#0b2545}
.bda-account-page .page{padding-top:28px;min-height:65vh}
.bda-account-page .page>.container{position:relative;padding-left:260px;min-height:570px;max-width:1400px}
.bda-account-page .page>.container>.row,.bda-account-page .page>.container>.row>.col-md-12{position:static}
.bda-account-page .bda-account-nav{position:absolute;left:24px;top:0;width:210px;display:flex;flex-direction:column;gap:5px;box-shadow:none;padding:12px}
.bda-account-page .bda-account-nav-item{border-radius:8px;white-space:normal;min-height:44px}
.bda-account-page .bda-account-nav-item.is-logout{margin:12px 0 0}
.bda-account-mobile{display:none}
.bda-account-page .user-content{padding-top:0}
.bda-account-page .bda-topbar{display:none}
.ux-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:10000;background:#0b2545;color:#fff;border-radius:10px;padding:14px 22px;max-width:calc(100% - 32px);box-shadow:0 4px 20px #0003}
.ux-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.ux-categories a{display:block;padding:10px 0}
.ux-table-cards>thead{display:none}.ux-table-cards,.ux-table-cards>tbody{display:block;width:100%}
.ux-table-cards>tbody>tr{display:block;background:white;border:1px solid #e4e9f0;border-radius:12px;margin-bottom:18px;padding:16px}
.ux-table-cards>tbody>tr>td{display:block!important;width:auto!important;min-width:0!important;border:0!important;padding:8px!important;white-space:normal!important}
.ux-table-cards>tbody>tr>td[data-label]:before{content:attr(data-label);display:block;font-weight:700;color:#526176;margin-bottom:6px}
.ux-table-cards .table{margin-bottom:0}
.bda-account-page .table-responsive{border:0}
.bda-ticket-layout.has-thread{display:none}
@media(max-width:767px){.bda-ticket-layout{grid-template-columns:minmax(0,1fr)!important}.bda-ticket-panel{min-width:0}}
.ux-hero-pause{position:absolute;bottom:18px;right:18px;z-index:5;min-height:44px;padding:8px 15px;border:1px solid #b6c3d3;border-radius:8px;background:white;color:#0b2545}
.mf-menu>li>a{max-width:none!important;text-overflow:clip!important}
.mf-menu{flex-wrap:wrap!important}
.mf-checkout-page .mf-checkout-table-wrap{overflow:visible}
.mf-checkout-page .mf-checkout-table{min-width:0}
.mf-checkout-page .mf-page-hero{min-height:100px}

.ux-payment-details{font-size:13px;margin-top:12px}.ux-payment-details summary{cursor:pointer;padding:8px 0}
@media(max-width:991px){
 .bda-account-page .page>.container{padding-left:16px;min-height:0}
 .bda-account-page .bda-account-nav{position:static;width:100%;display:none}
 .bda-account-mobile{display:block;margin-bottom:20px}.bda-account-mobile summary{padding:14px;background:#fff;border:1px solid #e4e9f0;border-radius:10px;cursor:pointer;font-weight:700}
 .bda-account-mobile .bda-account-nav{display:flex;position:static;overflow:visible;flex-wrap:wrap;width:100%;margin:8px 0}
 .ux-grid{grid-template-columns:1fr}.ux-categories{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 .ux-card{padding:18px}.ux-categories{grid-template-columns:1fr}.ux-order{align-items:flex-start;flex-direction:column;gap:8px}
 .ux-table-cards table,.ux-table-cards table tbody,.ux-table-cards table tr,.ux-table-cards table td{display:block;width:100%;min-width:0!important}.ux-table-cards table thead{display:none}
 .ux-table-cards table tr{border-bottom:1px solid #e4e9f0;margin-bottom:12px;padding-bottom:12px}
 .ux-table-cards table td:before{content:attr(data-label);font-weight:600;margin-right:8px}
 .mf-checkout-table,.mf-checkout-table tbody,.mf-checkout-table tr,.mf-checkout-table td{display:block;width:100%;min-width:0!important}.mf-checkout-table thead{display:none}
 .mf-checkout-table tr{border-bottom:1px solid #d7dee8;padding:12px}.mf-checkout-table td{border:0!important;padding:5px!important}.mf-checkout-table td:before{content:attr(data-label);font-weight:600;margin-right:8px}
 .ux-toast{bottom:90px}
 .mf-checkout-table td.ux-empty-cell,.ux-table-cards td.ux-empty-cell{display:none!important}
}

.bda-account-nav{background:#fff;border:1px solid #e4e9f0;border-radius:12px}.bda-account-nav-item{display:flex;align-items:center;gap:10px;padding:12px 14px;color:#183452;font-weight:600;text-decoration:none}.bda-account-nav-item.is-active,.bda-account-nav-item:hover{background:#0b2545;color:#fff}.bda-account-nav-item.is-logout{color:#a32020}.bda-account-nav-item:focus-visible,a:focus-visible,button:focus-visible{outline:3px solid #f26a1b;outline-offset:3px}

/* Sticky purchase bar (product page, mobile): keep back-to-top above it. */
@media(max-width:767px){body:has(.amz-sticky-buy) .mf-scrollup{bottom:84px!important}}
.bda-hero-dots .ux-hero-pause{position:static;width:28px;height:28px;min-height:0;padding:0;margin-left:8px;border-radius:50%;font-size:10px;line-height:26px;letter-spacing:-2px;opacity:.9}
.bda-checkout-page .mf-page-hero h1{color:#fff}

/* Checkout: compact title, numbered steps, Amazon-style address card. */
.ux-checkout-head{padding:24px 0 4px;background:#f6f8fb}
.ux-checkout-head .container{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap}
.ux-checkout-head h1{margin:0;font-size:30px;color:#0b2545}
.ux-checkout-head p{margin:0;color:#176738;font-weight:600}
.mf-checkout-page .ux-step-head{display:flex;align-items:center;gap:12px;padding-bottom:14px;margin-bottom:16px;border-bottom:1px solid #e4e9f0}
.mf-checkout-page .ux-step-head h2{margin:0;font-size:20px;color:#0b2545}
.ux-step-no{flex:0 0 28px;height:28px;border-radius:50%;background:#0b2545;color:#fff;font-weight:700;display:inline-flex;align-items:center;justify-content:center;font-size:14px}
.ux-link-btn{margin-left:auto;background:none;border:0;padding:6px 4px;color:#0a58ca;font-weight:600;text-decoration:underline;cursor:pointer}
.ux-address{font-style:normal;line-height:1.65;margin:0;color:#183452}
.ux-address strong{color:#0b2545}
.ux-billing-line{margin:12px 0 0;padding-top:12px;border-top:1px dashed #e4e9f0;color:#526176}
.ux-billing-line span{font-weight:600;color:#183452;margin-right:4px}
.ux-address-form{max-width:none}
.ux-address-form fieldset{border:0;padding:0;margin:0 0 8px;min-width:0}
.ux-address-form legend{border:0;font-size:16px;font-weight:700;color:#0b2545;margin:4px 0 12px;width:auto}
.ux-address-form .ux-grid{gap:0 16px}
.ux-field-wide{grid-column:1/-1}
.ux-same-address{margin:4px 0 16px}
.ux-same-address label{display:flex;align-items:center;gap:10px;font-weight:600;cursor:pointer}
.ux-same-address input{width:18px;height:18px;margin:0}
.ux-btn-save{min-height:44px;padding:10px 22px;font-weight:700}
.ux-summary-credit strong{color:#176738}
.ux-checkout-items .mf-checkout-table-wrap{margin-top:0}
@media(max-width:600px){.ux-checkout-head h1{font-size:24px}.mf-checkout-page .ux-step-head h2{font-size:18px}}

/* Bharat Refer panel on checkout: full bill breakdown on demand. */
.brx-summary-details{margin:12px 0;border-top:1px solid #e4e9f0;padding-top:10px}
.brx-summary-details>summary{cursor:pointer;font-weight:600;color:#0a58ca;padding:4px 0}
.brx-summary-details[open]>summary{margin-bottom:8px}

/* Checkout cards: inner spacing; totals live only in the Payment Summary. */
.mf-checkout-page .ux-checkout-address{padding:20px 24px}
.mf-checkout-page .ux-checkout-items>.ux-step-head{padding:20px 24px 14px;margin:0}
.mf-checkout-page .ux-checkout-items .mf-total-row,.mf-checkout-page .ux-checkout-items .mf-grand-row{display:none}
@media(max-width:600px){.mf-checkout-page .ux-checkout-address{padding:16px}.mf-checkout-page .ux-checkout-items>.ux-step-head{padding:16px 16px 12px}}

/* Checkout items on phones: photo left, details right. Cells: # photo name size color price qty total */
@media(max-width:600px){
 .ux-checkout-items .mf-checkout-table tbody tr:not([class]){display:grid!important;grid-template-columns:72px minmax(0,1fr);column-gap:12px;align-items:start}
 .ux-checkout-items .mf-checkout-table tbody tr:not([class]) td{grid-column:2}
 .ux-checkout-items .mf-checkout-table tbody tr:not([class]) td:nth-child(1){display:none!important}
 .ux-checkout-items .mf-checkout-table tbody tr:not([class]) td:nth-child(2){grid-column:1;grid-row:1/span 6}
 .ux-checkout-items .mf-checkout-table td:nth-child(2):before,.ux-checkout-items .mf-checkout-table td:nth-child(3):before{display:none}
 .ux-checkout-items .mf-checkout-table td:nth-child(2) img{width:72px!important;height:72px!important;object-fit:contain}
}

/* Address form: name | mobile, full-width address, pincode | city | state. */
.ux-address-form .ux-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
.ux-address-form .ux-field{grid-column:span 3}
.ux-address-form .ux-field-wide{grid-column:1/-1}
.ux-address-form .ux-field-third{grid-column:span 2}
.ux-checkout-address .ux-address-form fieldset:first-of-type>legend{display:none}
@media(max-width:600px){.ux-address-form .ux-grid{grid-template-columns:1fr}.ux-address-form .ux-field,.ux-address-form .ux-field-third{grid-column:1/-1}}

/* ==================== Checkout layout v2 ==================== */
.mf-checkout-page{padding:6px 0 32px}
.ux-checkout-head{padding:18px 0 4px}
.ux-checkout-head h1{font-size:26px;font-weight:700}
.ux-checkout-grid{display:flex;flex-wrap:wrap;align-items:stretch}
.mf-checkout-page .mf-checkout-card{margin-bottom:16px;border:1px solid #e6ebf1;border-radius:12px;box-shadow:0 1px 3px rgba(15,35,64,.05)}
.mf-checkout-page .ux-checkout-address,.mf-checkout-page .ux-checkout-offers{padding:18px 22px}
.mf-checkout-page .ux-step-head{padding-bottom:12px;margin-bottom:14px}
.mf-checkout-page .ux-step-head h2{font-size:18px;font-weight:700}
.mf-checkout-page .ux-step-no{flex-basis:26px;height:26px;font-size:13px}

/* Address: delivery and billing side by side */
.ux-address-summary{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:4px 28px;align-items:start}
.ux-address-summary .ux-billing-line{margin:0;padding:0 0 0 24px;border:0;border-left:1px solid #e6ebf1;line-height:1.65}
.ux-address-summary .ux-billing-line span{display:block;margin:0 0 2px}

/* Offers / Bharat Refer wallets as compact tiles */
.ux-checkout-offers .br-coupon-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:0}
.ux-checkout-offers .br-coupon-card{margin:0}
.ux-checkout-offers .brx-panel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0;padding:0;border:0;background:transparent}
.ux-checkout-offers .brx-panel>*:not(.brx-wallet){grid-column:1/-1}
.ux-checkout-offers .brx-panel__head{margin:-6px 0 0}
.ux-checkout-offers .brx-panel__title{display:none}
.ux-checkout-offers .brx-panel__badge{margin-left:0}
.ux-checkout-offers .brx-wallet{display:flex;flex-direction:column;gap:6px;padding:12px 14px;border:1px solid #e6ebf1;border-radius:10px;background:#fbfcfe}
.ux-checkout-offers .brx-wallet__title{font-weight:700;font-size:14px}
.ux-checkout-offers .brx-wallet__facts{margin:0}
.ux-checkout-offers .brx-wallet__facts li{font-size:12.5px;padding:1px 0}
.ux-checkout-offers .brx-wallet__applied{color:#176738;font-weight:600}
.ux-checkout-offers .brx-wallet__none{margin:0;font-size:12px;color:#64748b}
.ux-checkout-offers .brx-wallet .brx-btn{width:100%;margin-top:auto;min-height:38px}
.ux-checkout-offers .brx-summary-details{margin:0;padding-top:8px}
.ux-checkout-offers .brx-earn{margin:0}
.ux-checkout-offers .brx-panel__status:empty{display:none}
.ux-checkout-offers .brx-panel__status{color:#a32020;font-weight:600}

/* Items: no # column, empty columns removed by JS, quieter shipment line */
.ux-checkout-items .mf-checkout-table th:first-child,.ux-checkout-items .mf-checkout-table td:first-child{display:none}
.mf-checkout-table .ux-col-empty{display:none!important}
.ux-checkout-items .mf-delivery-breakup-box{padding:10px 22px 14px}
.ux-checkout-items .mf-delivery-breakup-box h4{font-size:13px;font-weight:700;color:#526176;text-transform:uppercase;letter-spacing:.03em;margin:0 0 4px}
.ux-checkout-items .mf-delivery-line{padding:4px 0;font-size:13px}

/* Order summary: short, and it follows the page on desktop */
.mf-checkout-page .mf-summary-card{padding:20px;border:1px solid #e6ebf1;border-radius:12px;box-shadow:0 1px 3px rgba(15,35,64,.05)}
.mf-checkout-page .mf-summary-card h3{font-size:18px;font-weight:700;margin:0 0 8px}
.mf-checkout-page .mf-summary-row{padding:8px 0;font-size:14px}
.mf-checkout-page .mf-summary-row.total{padding-top:12px;border-bottom:0}
.mf-checkout-page .mf-summary-row.total strong{font-size:22px}
.ux-summary-note{margin:0 0 4px;font-size:12.5px;color:#64748b}
.mf-checkout-page .mf-payment-box{margin-top:12px;padding-top:14px;border-top:1px solid #eef2f7}
.mf-checkout-page .mf-payment-box h4{font-size:15px;font-weight:700;margin:0 0 10px}
.mf-checkout-page .mf-payment-options{gap:8px;margin-bottom:10px}
.mf-checkout-page .mf-payment-option{padding:10px 12px}
.mf-checkout-page .mf-pay-note{margin:0 0 10px;padding:9px 12px;font-size:12.5px;line-height:1.5}
.mf-checkout-page .full-btn{min-height:48px;font-size:16px}
.mf-checkout-page .mf-checkout-terms{font-size:12px;margin:10px 0 0;color:#64748b}
@media (min-width:992px){
 .mf-checkout-page .mf-summary-card{position:static}
}
@media (min-width:992px) and (min-height:720px){
 .mf-checkout-page .mf-summary-card{position:sticky;top:calc(var(--bda-header-h, 152px) + 16px);transition:top .25s ease}
 body.bda-header-hidden .mf-checkout-page .mf-summary-card{top:16px}
}

/* Phones: pay bar */
.ux-paybar{position:fixed;left:0;right:0;bottom:0;z-index:1100;display:flex;align-items:center;gap:14px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e6ebf1;box-shadow:0 -6px 18px rgba(15,35,64,.08)}
.ux-paybar[hidden]{display:none!important}
.ux-paybar-amount small{display:block;font-size:12px;color:#526176}
.ux-paybar-amount strong{font-size:18px;color:#0b2545}
.ux-paybar .mf-btn-primary{flex:1;border:0;border-radius:8px;min-height:46px;font-weight:700;font-size:16px}
body.ux-has-paybar{padding-bottom:76px}
body.ux-has-paybar .mf-scrollup{bottom:88px!important}
@media (min-width:992px){.ux-paybar{display:none!important}}

@media (max-width:991px){
 .ux-checkout-grid>[class*=col-]{width:100%}
}
@media (max-width:767px){
 .ux-checkout-offers .brx-panel{grid-template-columns:1fr}
}
@media (max-width:600px){
 .mf-checkout-page .ux-checkout-address,.mf-checkout-page .ux-checkout-offers{padding:16px}
 .ux-address-summary{grid-template-columns:1fr}
 .ux-address-summary .ux-billing-line{padding:10px 0 0;border-left:0;border-top:1px dashed #e6ebf1}
 .ux-address-summary .ux-billing-line span{display:inline;margin-right:4px}
 .ux-checkout-offers .br-coupon-grid{grid-template-columns:1fr}
 .ux-checkout-offers .brx-wallet{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px}
 .ux-checkout-offers .brx-wallet>*{grid-column:1/-1}
 .ux-checkout-offers .brx-wallet .brx-btn{width:100%}
 .ux-checkout-head h1{font-size:22px}
}
.ux-checkout-items .mf-checkout-table th:nth-child(2),.ux-checkout-items .mf-checkout-table td:nth-child(2){padding-left:22px}
@media (max-width:767px){.ux-checkout-items .mf-delivery-line{flex-direction:row;justify-content:space-between;text-align:left}}
@media (max-width:600px){.ux-checkout-items .mf-checkout-table td:nth-child(2){padding-left:5px!important}.ux-checkout-items .mf-delivery-breakup-box{padding:10px 16px 14px}}

/* Coupon step: code and Apply on one line */
.ux-checkout-offers .br-coupon-head h4{font-size:15px;font-weight:700}
.ux-checkout-offers .br-coupon-row{flex-wrap:nowrap}
.ux-checkout-offers .br-coupon-input{flex:1 1 auto;width:auto;min-width:0}
.ux-checkout-offers .br-coupon-btn{flex:0 0 auto}

/* Bharat Refer: choose how much BR Money / Cash Wallet to use */
.brx-amount{display:flex;flex-direction:column;gap:4px;margin:2px 0 0;font-size:12.5px;font-weight:600;color:#183452}
.brx-amount small{font-weight:400;color:#64748b}
.brx-amount__field{display:flex;align-items:center;border:1px solid #cbd5e1;border-radius:8px;background:#fff;overflow:hidden}
.brx-amount__field:focus-within{border-color:#0b2545;box-shadow:0 0 0 3px rgba(11,37,69,.12)}
.brx-amount__prefix{padding:0 4px 0 10px;color:#526176;font-weight:600}
.brx-amount input{flex:1;min-width:0;height:38px;border:0;outline:0;padding:0 10px 0 2px;font-size:15px;font-weight:600;color:#0b2545;background:transparent}
.brx-wallet__msg{margin:0;font-size:12px;color:#a32020;font-weight:600}
.brx-wallet__msg:empty{display:none}
.ux-checkout-offers .brx-wallet .brx-btn--remove{margin-top:0}

/* ==================== Checkout v3 (reference look) ==================== */
.ux-step-count{font-size:14px;font-weight:600;color:#64748b}

/* Bharat Refer box: branded, warm border */
.ux-checkout-offers .brx-panel--checkout{display:block;padding:0;border:1px solid #f6b46b;border-radius:12px;background:#fff;overflow:hidden}
.ux-checkout-offers .brx-panel--checkout .brx-panel__head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0;padding:12px 16px;background:linear-gradient(90deg,#fff7ec,#fffdf8);border-bottom:1px solid #fde2c2}
.ux-checkout-offers .brx-panel__logo{width:40px;height:40px;border-radius:50%;object-fit:contain;background:#fff}
.ux-checkout-offers .brx-panel__heading{display:flex;flex-direction:column;line-height:1.15}
.ux-checkout-offers .brx-panel__brand{font-size:17px;font-weight:800;color:#1d4ed8}
.ux-checkout-offers .brx-panel--checkout .brx-panel__title{display:block;font-size:15px;font-weight:700;color:#1e3a8a}
.ux-checkout-offers .brx-panel__badge{margin-left:auto}
.ux-checkout-offers .brx-panel--checkout .brx-wallet{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 18px;margin:0;padding:12px 16px;border:0;border-top:1px solid #f1f5f9;border-radius:0;background:#fff}
.ux-checkout-offers .brx-panel--checkout .brx-panel__head+.brx-wallet{border-top:0}
.ux-checkout-offers .brx-wallet__main{min-width:0}
.ux-checkout-offers .brx-wallet__title{font-size:14px;font-weight:700;color:#0b2545;margin:0 0 4px}
.ux-checkout-offers .brx-wallet__facts li{display:flex;justify-content:space-between;gap:12px;font-size:13px}
.ux-checkout-offers .brx-wallet--payment .brx-wallet__facts li{justify-content:flex-start}
.ux-checkout-offers .brx-wallet__controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.ux-checkout-offers .brx-wallet__msg{grid-column:1/-1}
.ux-checkout-offers .brx-wallet .brx-btn{width:auto;margin:0;min-height:40px;padding:8px 16px;border-radius:8px}
.ux-checkout-offers .brx-wallet--discount{grid-template-columns:minmax(0,1fr) minmax(220px,40%)}
.ux-checkout-offers .brx-wallet--discount .brx-wallet__controls{flex-direction:column;align-items:stretch}
.ux-checkout-offers .brx-btn--primary{background:#f36f21;border-color:#f36f21;color:#fff;font-size:15px;font-weight:700}
.ux-checkout-offers .brx-btn--primary:hover{background:#dc5c12;border-color:#dc5c12}
.ux-checkout-offers .brx-btn--outline{background:#fff;border:1px solid #1d4ed8;color:#1d4ed8;font-weight:700}
.ux-checkout-offers .brx-btn--outline:hover{background:#eff4ff}
.ux-checkout-offers .brx-wallet--payment .brx-amount__field{width:130px}
.ux-checkout-offers .brx-wallet--payment .brx-amount__field input{height:40px}
.ux-checkout-offers .brx-wallet__applied{margin:2px 0}
.ux-checkout-offers .brx-hold-note{display:flex;gap:6px;margin:0;padding:10px 16px;border-top:1px solid #f1f5f9;background:#f8fafc;font-size:12.5px;color:#475569}
.ux-checkout-offers .brx-hold-note span{color:#1d4ed8;font-weight:700}
.ux-checkout-offers .brx-panel--checkout .brx-summary-details,.ux-checkout-offers .brx-panel--checkout .brx-earn{margin:0 16px 12px}
.ux-checkout-offers .brx-panel--checkout .brx-summary-details{padding-top:10px}
.ux-checkout-offers .brx-panel__status{padding:0 16px 10px}

/* Items: MRP struck through, advantage bar under each item */
.mf-checkout-table .ux-mrp s{color:#8a94a6;font-weight:500}
.ux-checkout-items .ux-item-advantage td{padding:0 22px 12px!important;border-top:0!important}
.ux-checkout-items .ux-item-advantage .brx-row-advantage{margin:0}

/* Summary: saving box, final amount, orange CTA */
.ux-saving-box{display:flex;gap:10px;align-items:flex-start;margin:10px 0 4px;padding:10px 12px;border:1px solid #bfe5cb;border-radius:10px;background:#ecf8f0;color:#14532d}
.ux-saving-box__icon{color:#1f9d55;flex:0 0 auto}
.ux-saving-box__text{display:flex;flex-direction:column;line-height:1.35}
.ux-saving-box__text strong{font-size:14px}
.ux-saving-box__text small{font-size:12px;color:#3f6f52}
.mf-checkout-page .mf-summary-row.total span{font-size:15px;font-weight:700;color:#1e3a8a}
.mf-checkout-page .mf-summary-row.total strong{font-size:24px;color:#0b2545}
.mf-checkout-page #razorpayBtn,.mf-checkout-page #codOrderBtn,.ux-paybar .mf-btn-primary{background:#f36f21;color:#fff!important;border:0}
.mf-checkout-page #razorpayBtn:hover,.mf-checkout-page #codOrderBtn:hover,.ux-paybar .mf-btn-primary:hover{background:#dc5c12;color:#fff!important}

/* Trust strip */
.ux-trust-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:8px 0 0;padding:0;list-style:none;background:#fff;border:1px solid #e6ebf1;border-radius:12px}
.ux-trust-strip li{display:flex;align-items:center;gap:12px;padding:14px 18px;border-left:1px solid #eef2f7}
.ux-trust-strip li:first-child{border-left:0}
.ux-trust-strip__icon{color:#1d4ed8;flex:0 0 auto}
.ux-trust-strip li:nth-child(1) .ux-trust-strip__icon{color:#16a34a}
.ux-trust-strip li:nth-child(3) .ux-trust-strip__icon{color:#f36f21}
.ux-trust-strip strong{display:block;font-size:14px;color:#1e3a8a}
.ux-trust-strip small{display:block;font-size:12.5px;color:#64748b}
.ux-trust-strip a{color:inherit;text-decoration:underline}

@media (max-width:991px){
 .ux-trust-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ux-trust-strip li:nth-child(3){border-left:0}
 .ux-trust-strip li:nth-child(n+3){border-top:1px solid #eef2f7}
}
@media (max-width:600px){
 .ux-checkout-offers .brx-panel--checkout .brx-wallet,.ux-checkout-offers .brx-wallet--discount{grid-template-columns:1fr}
 .ux-checkout-offers .brx-wallet__controls{justify-content:stretch}
 .ux-checkout-offers .brx-wallet--payment .brx-amount__field{flex:1 1 auto;width:auto}
 .ux-checkout-offers .brx-panel__badge{margin-left:0}
 .ux-checkout-items .ux-item-advantage td{padding:0 12px 12px!important}
 .ux-trust-strip{grid-template-columns:1fr}
 .ux-trust-strip li{border-left:0;border-top:1px solid #eef2f7}
 .ux-trust-strip li:first-child{border-top:0}
}
/* fixes: advantage row is a single colspan cell; input without inner border; facts stay compact */
.ux-checkout-items .mf-checkout-table tr.ux-item-advantage td:first-child{display:table-cell!important}
.brx-amount__field input,.brx-amount__field input:focus{border:0!important;box-shadow:none!important;background:transparent!important;outline:0}
.ux-checkout-offers .brx-wallet--discount .brx-wallet__facts{max-width:340px}
@media (max-width:600px){.ux-checkout-items .mf-checkout-table tr.ux-item-advantage,.ux-checkout-items .mf-checkout-table tr.ux-item-advantage td:first-child{display:block!important}}
.ux-item-advantage .brx-row-advantage__head,.ux-item-advantage .brx-row-advantage__item{padding-right:12px;margin-right:12px;border-right:1px solid #c9e8d4}
.ux-item-advantage .brx-row-advantage__item:last-child{border-right:0;margin-right:0;padding-right:0}
@media (max-width:600px){.ux-item-advantage .brx-row-advantage__head,.ux-item-advantage .brx-row-advantage__item{border-right:0;margin-right:0}}

/* ==================== Login / registration (reference look) ==================== */
.ux-auth{background:#f3f6fb}
.ux-auth>.container{max-width:1080px}
.ux-auth-intro{text-align:center;margin:0 0 18px}
.ux-auth-intro h1{margin:0 0 4px;font-size:28px;font-weight:800;color:#0b2545}
.ux-auth-intro p{margin:0;color:#5c6b80;font-size:15px}

.ux-account-types{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 22px}
.ux-account-types.is-two{grid-template-columns:repeat(2,minmax(0,1fr));max-width:720px;margin-left:auto;margin-right:auto}
.ux-account-type{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:20px 18px;background:#fff;border:1px solid #e4e9f0;border-radius:14px;box-shadow:0 4px 18px rgba(11,37,69,.05)}
.ux-account-type.is-current{border-color:#bcd0f7;box-shadow:0 0 0 3px rgba(29,78,216,.08)}
.ux-account-type__icon{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;margin:0 0 4px}
.ux-account-type__icon.is-customer{background:#e8f0fe;color:#1d4ed8}
.ux-account-type__icon.is-member{background:#fff1e6;color:#f36f21}
.ux-account-type__icon.is-seller{background:#e8f0fe;color:#1d4ed8}
.ux-account-type h2{margin:0;font-size:19px;font-weight:700;color:#0b2545}
.ux-account-type p{margin:0 0 8px;font-size:13.5px;color:#5c6b80;flex:1}
.ux-account-type__btn{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:44px;border-radius:9px;font-weight:700;font-size:15px;text-decoration:none!important}
.ux-account-type__btn.is-navy{background:#0b2545;color:#fff!important}
.ux-account-type__btn.is-navy:hover{background:#12325c}
.ux-account-type__link{font-size:13px;color:#1d4ed8}
.ux-account-type__br{width:100%}
.ux-account-type__br .brx-login-block{margin:0}
.ux-account-type__br .brx-login-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;border:0;border-radius:9px;background:#f36f21;color:#fff!important;font-weight:700;font-size:15px;text-decoration:none!important}
.ux-account-type__br .brx-login-btn:hover{background:#dc5c12}
.ux-account-type__br .brx-login-note{margin:6px 0 0;font-size:12px;color:#64748b}

.ux-auth-split{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:18px;align-items:stretch}
body.bda-storefront .ux-auth .bda-auth-card.ux-auth-card{max-width:none;margin:0}
.ux-auth-card .bda-auth-head h2{margin:0 0 6px;font-size:22px;font-weight:800;color:#0b2545}
.ux-auth-row{display:flex;justify-content:flex-end;margin:-4px 0 14px;font-size:14px}
.ux-auth-row a{color:#1d4ed8}
body.bda-storefront .ux-auth .bda-auth-btn.ux-auth-primary,body.bda-storefront .ux-reg-page .bda-auth-btn{background:#f36f21;color:#fff;border-color:#f36f21}
body.bda-storefront .ux-auth .bda-auth-btn.ux-auth-primary:hover,body.bda-storefront .ux-reg-page .bda-auth-btn:hover{background:#dc5c12;color:#fff}
body.bda-storefront .ux-seller-reg .bda-auth-btn.ux-seller-primary{background:#0b2545;color:#fff;border-color:#0b2545;width:100%}
body.bda-storefront .ux-seller-reg .bda-auth-btn.ux-seller-primary:hover{background:#12325c}

.ux-auth-aside{display:flex;flex-direction:column;justify-content:center;height:100%;padding:26px 24px;background:linear-gradient(180deg,#f5f9ff,#fff);border:1px solid #e4e9f0;border-radius:14px;box-shadow:0 4px 18px rgba(11,37,69,.05)}
.ux-auth-aside h2{margin:10px 0 14px;font-size:22px;font-weight:800;color:#0b2545}
.ux-check-list{margin:0;padding:0;list-style:none}
.ux-check-list li{position:relative;margin:0 0 11px;padding-left:30px;font-size:14.5px;color:#334155;line-height:1.45}
.ux-check-list li:before{content:"";position:absolute;left:0;top:1px;width:20px;height:20px;border-radius:50%;background:#1d4ed8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat}

/* Customer registration */
.ux-reg-page{padding:26px 0 40px}
.ux-reg-split{display:flex;flex-wrap:wrap;row-gap:18px}
.ux-reg-split>[class*=col-]{float:none}
.ux-reg-head{margin:0 0 14px}
.ux-reg-head h1{margin:0 0 4px;font-size:26px;font-weight:800;color:#0b2545}
.ux-reg-head p{margin:0;color:#5c6b80}
.ux-reg-page .reg-card{border-radius:14px}

/* Seller registration */
.ux-seller-reg{padding:26px 0 40px}
.ux-seller-reg .bda-auth-head h1{font-size:24px}
.ux-steps{display:flex;gap:8px;margin:0 0 16px}
.ux-steps .reg-step{flex:1;padding:8px 10px;border-radius:8px;background:#eef2f7;text-align:center;font-size:13px;font-weight:600;color:#526176}
.ux-steps .reg-step.active{background:#0b2545;color:#fff}
.ux-seller-form .ux-resend{margin:-4px 0 14px}

/* OTP boxes (enhances a single OTP input) */
.ux-otp{display:flex;gap:8px;flex-wrap:nowrap}
.ux-otp input{width:46px;height:50px;padding:0;text-align:center;font-size:20px;font-weight:700;color:#0b2545;border:1px solid #cbd5e1;border-radius:9px;background:#fff}
.ux-otp input:focus{outline:0;border-color:#0b2545;box-shadow:0 0 0 3px rgba(11,37,69,.12)}

@media (max-width:991px){
 .ux-account-types{grid-template-columns:1fr;max-width:520px;margin-left:auto;margin-right:auto}
 .ux-account-types.is-two{grid-template-columns:1fr}
 .ux-auth-split{grid-template-columns:1fr}
 .ux-reg-split>[class*=col-]{width:100%}
}
@media (max-width:600px){
 .ux-auth-intro h1{font-size:23px}
 .ux-account-type{flex-direction:row;flex-wrap:wrap;text-align:left;align-items:center;gap:4px 12px;padding:14px}
 .ux-account-type__icon{width:44px;height:44px;margin:0}
 .ux-account-type h2{flex:1;font-size:17px}
 .ux-account-type p{flex-basis:100%;margin:0 0 6px}
 .ux-account-type__link{flex-basis:100%;text-align:center}
 .ux-otp{gap:6px}
 .ux-otp input{width:40px;height:46px;font-size:18px}
}
/* auth-pages.css forces navy text on .bda-auth-btn; our coloured buttons need white */
body.bda-storefront .ux-auth .bda-auth-btn.ux-auth-primary,body.bda-storefront .ux-reg-page .bda-auth-btn,body.bda-storefront .ux-seller-reg .bda-auth-btn.ux-seller-primary{color:#fff!important;border-color:transparent}
body.bda-storefront .ux-otp input,body.bda-storefront .bda-auth-field .ux-otp input[type="text"]{width:46px!important;height:50px!important;padding:0!important;text-align:center;font-size:20px}
@media (max-width:600px){body.bda-storefront .ux-otp input,body.bda-storefront .bda-auth-field .ux-otp input[type="text"]{width:40px!important;height:46px!important}}

/* ==================== Sign-in: one card with account-type tabs ==================== */
.ux-login{padding:36px 0 28px}
.ux-login-card{max-width:460px;margin:0 auto;padding:28px 28px 22px;background:#fff;border:1px solid #e4e9f0;border-radius:16px;box-shadow:0 8px 28px rgba(11,37,69,.08)}
.ux-login-head{text-align:center;margin:0 0 18px}
.ux-login-head h1{margin:0 0 4px;font-size:24px;font-weight:800;color:#0b2545}
.ux-login-head p{margin:0;font-size:14px;color:#5c6b80}
.ux-login-tabs{display:flex;gap:4px;margin:0 0 20px;padding:4px;background:#eef2f7;border-radius:11px}
.ux-login-tabs a{flex:1;display:flex;align-items:center;justify-content:center;min-height:40px;padding:6px 8px;border-radius:8px;font-size:13.5px;font-weight:700;color:#526176;text-align:center;line-height:1.2;text-decoration:none!important}
.ux-login-tabs a:hover{color:#0b2545}
.ux-login-tabs a.is-active{background:#fff;color:#0b2545;box-shadow:0 1px 3px rgba(11,37,69,.14)}
.ux-login-pane[hidden]{display:none!important}
.ux-label-row{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 0 6px}
body.bda-storefront .ux-login .ux-label-row label{margin:0}
.ux-label-row a{font-size:13px;color:#1d4ed8}
body.bda-storefront .ux-login .bda-auth-btn{height:48px;margin-top:8px;font-size:16px}
.ux-login-foot{margin:16px 0 0;text-align:center;font-size:14px;color:#5c6b80}
.ux-login-foot a{font-weight:700;color:#1d4ed8}
.ux-login-lead{margin:0 0 12px;font-size:14.5px;color:#334155;line-height:1.55}
.ux-login .ux-check-list{margin:0 0 16px}
.ux-login .ux-check-list li{font-size:14px}
.ux-login-br .brx-login-block{margin:0}
.ux-login-br .brx-login-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;border:0;border-radius:9px;background:#f36f21;color:#fff!important;font-weight:700;font-size:16px;text-decoration:none!important}
.ux-login-br .brx-login-btn:hover{background:#dc5c12}
.ux-login-br .brx-login-note{display:none}
.ux-login-br .brx-login-alert{margin:0 0 12px}
body.bda-storefront .ux-login .bda-auth-btn.ux-seller-go{background:#0b2545;color:#fff!important;border-color:transparent}
body.bda-storefront .ux-login .bda-auth-btn.ux-seller-go:hover{background:#12325c}
.ux-login-trust{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 22px;max-width:640px;margin:18px auto 0;padding:0;list-style:none;font-size:13px;color:#5c6b80}
.ux-login-trust i{color:#16a34a;margin-right:4px}

/* One-line footer on focused pages */
.ux-compact-footer{margin-top:24px;padding:16px 0;background:#fff;border-top:1px solid #e4e9f0;font-size:13px;color:#5c6b80}
.ux-compact-footer__inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 18px}
.ux-compact-footer nav{display:flex;flex-wrap:wrap;gap:6px 18px}
.ux-compact-footer a{color:#334155}
.ux-compact-footer a:hover{color:#0b2545;text-decoration:underline}
body.ux-has-paybar .ux-compact-footer{padding-bottom:20px}

@media (max-width:600px){
 .ux-login{padding:20px 0 16px}
 .ux-login-card{padding:22px 16px 18px;border-radius:14px}
 .ux-login-head h1{font-size:21px}
 .ux-login-tabs a{font-size:12.5px;min-height:44px}
 .ux-login-trust{flex-direction:column;align-items:center;gap:6px}
 .ux-compact-footer__inner{justify-content:center;text-align:center}
}
/* Short focused pages: keep the one-line footer at the bottom of the screen */
body.bda-storefront:has(.ux-compact-footer) main{min-height:calc(100vh - var(--bda-header-h, 90px) - 64px)}
