/* Phase 9C — Native Bupiz Cart and Checkout */

:root{
    --bupiz-p9c-ink:#2f2833;
    --bupiz-p9c-muted:#6d6670;
    --bupiz-p9c-line:#e7e0ee;
    --bupiz-p9c-soft:#fbf8ff;
    --bupiz-p9c-pink:#5e22a4;
    --bupiz-p9c-orange:#5e22a4; /* legacy variable name; Bupiz primary plum */
    --bupiz-p9c-navy:#3d0b70;
    --bupiz-p9c-purple-dark:#4f118f;
    --bupiz-p9c-purple-soft:#f4edff;
    --bupiz-p9c-radius:18px;
    --bupiz-p9c-shadow:0 18px 50px rgba(18,33,58,.08);
}

body.bupiz-native-commerce{
    background:var(--bupiz-p9c-soft) !important;
    color:var(--bupiz-p9c-ink);
    font-family:Figtree,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.bupiz-p9c-page,
.bupiz-p9c-page *{box-sizing:border-box;}

.bupiz-p9c-container{
    width:min(1460px, calc(100% - 36px));
    margin-inline:auto;
}

.bupiz-p9c-commerce{
    min-height:60vh;
    padding-bottom:46px;
}

.bupiz-p9c-hero{
    position:relative;
    overflow:hidden;
    padding:28px 0 24px;
    background:
        radial-gradient(circle at 8% 10%, rgba(94,34,164,.08), transparent 24%),
        radial-gradient(circle at 92% 10%, rgba(94,34,164,.09), transparent 25%),
        linear-gradient(180deg,#fff 0%,#fbf8ff 100%);
    border-bottom:1px solid #f0e8ed;
}

.bupiz-p9c-hero__inner{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(520px,680px);
    align-items:center;
    gap:40px;
}

.bupiz-p9c-eyebrow{
    display:block;
    margin-bottom:6px;
    color:var(--bupiz-p9c-pink);
    font-size:12px;
    line-height:1.3;
    font-weight:900;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.bupiz-p9c-hero__copy h1{
    margin:0;
    color:var(--bupiz-p9c-ink);
    font-size:clamp(30px,3vw,46px);
    line-height:1.08;
    letter-spacing:-.035em;
    font-weight:900;
}

.bupiz-p9c-hero__copy p{
    max-width:620px;
    margin:10px 0 0;
    color:var(--bupiz-p9c-muted);
    font-size:15px;
    line-height:1.65;
}

.bupiz-p9c-progress{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    list-style:none;
    margin:0;
    padding:10px;
    border:1px solid rgba(228,232,239,.9);
    border-radius:18px;
    background:rgba(255,255,255,.9);
    box-shadow:0 12px 36px rgba(18,33,58,.06);
}

.bupiz-p9c-progress__step{
    position:relative;
    display:flex;
    align-items:center;
    min-width:0;
    gap:10px;
    padding:10px 12px;
}

.bupiz-p9c-progress__step:not(:last-child)::after{
    content:"";
    position:absolute;
    top:50%;
    right:-6px;
    width:12px;
    height:1px;
    background:#d7dde6;
}

.bupiz-p9c-progress__number{
    flex:0 0 32px;
    width:32px;
    height:32px;
    display:grid;
    place-items:center;
    border:1px solid #d9dfe8;
    border-radius:50%;
    background:#fff;
    color:#8a94a6;
    font-size:12px;
    font-weight:900;
}

.bupiz-p9c-progress__copy{
    display:flex;
    min-width:0;
    flex-direction:column;
    gap:2px;
}

.bupiz-p9c-progress__copy strong{
    color:#4d596b;
    font-size:12px;
    line-height:1.2;
    font-weight:900;
}

.bupiz-p9c-progress__copy small{
    color:#98a2b3;
    font-size:10px;
    line-height:1.25;
}

.bupiz-p9c-progress__step.is-active .bupiz-p9c-progress__number{
    border-color:var(--bupiz-p9c-orange);
    background:var(--bupiz-p9c-orange);
    color:#fff;
    box-shadow:0 8px 18px rgba(94,34,164,.18);
}

.bupiz-p9c-progress__step.is-active .bupiz-p9c-progress__copy strong,
.bupiz-p9c-progress__step.is-complete .bupiz-p9c-progress__copy strong{
    color:var(--bupiz-p9c-ink);
}

.bupiz-p9c-progress__step.is-complete .bupiz-p9c-progress__number{
    border-color:#168352;
    background:#168352;
    color:#fff;
}

.bupiz-p9c-content{
    padding-top:28px;
}

/* Notices */
.bupiz-p9c-content .woocommerce-notices-wrapper,
.bupiz-p9c-content > .woocommerce > .woocommerce-notices-wrapper,
.bupiz-p9c-content .woocommerce-error,
.bupiz-p9c-content .woocommerce-info,
.bupiz-p9c-content .woocommerce-message{
    grid-column:1 / -1;
}

.bupiz-p9c-content .woocommerce-error,
.bupiz-p9c-content .woocommerce-info,
.bupiz-p9c-content .woocommerce-message{
    margin:0 0 16px !important;
    padding:15px 18px 15px 48px !important;
    border:1px solid #e2e7ee !important;
    border-top:0 !important;
    border-left:4px solid var(--bupiz-p9c-orange) !important;
    border-radius:14px !important;
    background:#fff !important;
    color:#344054 !important;
    box-shadow:0 8px 24px rgba(18,33,58,.05);
}

.bupiz-p9c-content .woocommerce-error{border-left-color:#d92d20 !important;}
.bupiz-p9c-content .woocommerce-message{border-left-color:#168352 !important;}

/* =============================
   CART
============================= */
.bupiz-p9c-cart-content > .woocommerce{
    display:grid;
    grid-template-columns:minmax(0,1fr) 380px;
    align-items:start;
    gap:24px;
}

.bupiz-p9c-cart-content .woocommerce-cart-form{
    min-width:0;
    margin:0 !important;
    padding:18px;
    border:1px solid var(--bupiz-p9c-line);
    border-radius:var(--bupiz-p9c-radius);
    background:#fff;
    box-shadow:var(--bupiz-p9c-shadow);
}

.bupiz-p9c-cart-content table.shop_table{
    width:100%;
    margin:0 !important;
    border:0 !important;
    border-collapse:separate !important;
    border-spacing:0 !important;
    border-radius:0 !important;
    background:#fff;
}

.bupiz-p9c-cart-content table.shop_table thead th{
    padding:11px 12px !important;
    border:0 !important;
    border-bottom:1px solid var(--bupiz-p9c-line) !important;
    color:#7b8596;
    font-size:11px !important;
    line-height:1.2;
    font-weight:800 !important;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.bupiz-p9c-cart-content table.shop_table tbody td{
    padding:18px 12px !important;
    border:0 !important;
    border-bottom:1px solid #edf0f4 !important;
    vertical-align:middle !important;
}

.bupiz-p9c-cart-content table.shop_table tbody tr:last-child td{
    border-bottom:0 !important;
}

.bupiz-p9c-cart-content .product-thumbnail{
    width:96px;
}

.bupiz-p9c-cart-content .product-thumbnail img{
    width:78px !important;
    height:100px !important;
    object-fit:cover;
    border-radius:12px !important;
    background:#f2f4f7;
}

.bupiz-p9c-cart-content .product-name a{
    color:var(--bupiz-p9c-ink) !important;
    font-size:14px;
    line-height:1.45;
    font-weight:800;
    text-decoration:none;
}

.bupiz-p9c-cart-content .product-name a:hover{color:var(--bupiz-p9c-pink) !important;}

.bupiz-p9c-cart-content .variation{
    display:grid;
    grid-template-columns:auto 1fr;
    gap:3px 8px;
    margin:7px 0 0 !important;
    color:#7b8596;
    font-size:11px;
}

.bupiz-p9c-cart-content .variation dt,
.bupiz-p9c-cart-content .variation dd{margin:0 !important;padding:0 !important;}

.bupiz-p9c-cart-content .product-price,
.bupiz-p9c-cart-content .product-subtotal{
    color:var(--bupiz-p9c-ink);
    font-size:14px;
    font-weight:900;
    white-space:nowrap;
}

.bupiz-p9c-cart-content .quantity{
    display:inline-grid !important;
    grid-template-columns:36px 52px 36px;
    align-items:center;
    overflow:hidden;
    border:1px solid #d8dee7;
    border-radius:11px;
    background:#fff;
}

.bupiz-p9c-cart-content .quantity input.qty{
    width:52px !important;
    min-width:52px !important;
    height:38px !important;
    margin:0 !important;
    padding:0 4px !important;
    border:0 !important;
    border-left:1px solid #edf0f4 !important;
    border-right:1px solid #edf0f4 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    text-align:center;
    font-weight:800;
    -moz-appearance:textfield;
}

.bupiz-p9c-cart-content .quantity input.qty::-webkit-outer-spin-button,
.bupiz-p9c-cart-content .quantity input.qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}

.bupiz-p9c-qty-button{
    width:36px;
    height:38px;
    display:grid;
    place-items:center;
    padding:0;
    border:0;
    background:#fff;
    color:#475467;
    font-size:18px;
    line-height:1;
    cursor:pointer;
}

.bupiz-p9c-qty-button:hover{background:var(--bupiz-p9c-purple-soft);color:var(--bupiz-p9c-orange);}

.bupiz-p9c-cart-content a.remove{
    width:30px !important;
    height:30px !important;
    display:grid !important;
    place-items:center !important;
    border:1px solid #f1d5d5;
    border-radius:50% !important;
    background:#fff8f8 !important;
    color:#d92d20 !important;
    font-size:18px !important;
    line-height:1 !important;
    text-decoration:none !important;
}

.bupiz-p9c-cart-content a.remove:hover{
    border-color:#d92d20;
    background:#d92d20 !important;
    color:#fff !important;
}

.bupiz-p9c-cart-content td.actions{
    padding:18px 0 0 !important;
    border:0 !important;
}

.bupiz-p9c-cart-content .coupon{
    display:flex !important;
    align-items:center;
    gap:9px;
}

.bupiz-p9c-cart-content .coupon input.input-text{
    width:210px !important;
    min-height:42px;
    margin:0 !important;
    padding:10px 13px !important;
    border:1px solid #d7dde6 !important;
    border-radius:11px !important;
    background:#fff !important;
}

.bupiz-p9c-cart-content button[name="update_cart"]{
    min-height:42px !important;
    padding:10px 18px !important;
    border-radius:11px !important;
    background:#fff !important;
    border:1px solid #d7dde6 !important;
    color:#344054 !important;
    box-shadow:none !important;
}

.bupiz-p9c-cart-content button[name="update_cart"]:not(:disabled){
    border-color:var(--bupiz-p9c-orange) !important;
    color:var(--bupiz-p9c-orange) !important;
}

.bupiz-p9c-cart-content .cart-collaterals{
    grid-column:2;
    width:100% !important;
    float:none !important;
    margin:0 !important;
}

.bupiz-p9c-cart-content .cart_totals{
    width:100% !important;
    float:none !important;
    margin:0 !important;
    padding:22px;
    border:1px solid var(--bupiz-p9c-line);
    border-radius:var(--bupiz-p9c-radius);
    background:#fff;
    box-shadow:var(--bupiz-p9c-shadow);
}

.bupiz-p9c-cart-content .cart_totals h2{
    margin:0 0 16px !important;
    color:var(--bupiz-p9c-ink);
    font-size:22px !important;
    line-height:1.2;
    font-weight:900;
    letter-spacing:-.02em;
}

.bupiz-p9c-cart-content .cart_totals table{
    margin:0 0 16px !important;
    border:0 !important;
}

.bupiz-p9c-cart-content .cart_totals th,
.bupiz-p9c-cart-content .cart_totals td{
    padding:12px 0 !important;
    border:0 !important;
    border-bottom:1px solid #edf0f4 !important;
    color:#475467;
    font-size:13px;
}

.bupiz-p9c-cart-content .cart_totals td{text-align:right;}
.bupiz-p9c-cart-content .cart_totals .order-total th,
.bupiz-p9c-cart-content .cart_totals .order-total td{
    padding-top:17px !important;
    border-bottom:0 !important;
    color:var(--bupiz-p9c-ink);
    font-size:17px;
    font-weight:900;
}

.bupiz-p9c-cart-content .wc-proceed-to-checkout{padding:0 !important;}

.bupiz-p9c-cart-content .checkout-button{
    width:100% !important;
    min-height:50px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    margin:0 !important;
    padding:13px 18px !important;
    border:1px solid var(--bupiz-p9c-orange) !important;
    border-radius:13px !important;
    background:linear-gradient(135deg,#6c2db2 0%,#5e22a4 100%) !important;
    color:#fff !important;
    font-size:14px !important;
    font-weight:800 !important;
    box-shadow:0 10px 24px rgba(94,34,164,.18) !important;
}

.bupiz-p9c-cart-content .checkout-button:hover{
    transform:translateY(-1px);
    background:var(--bupiz-p9c-purple-dark) !important;
}

.bupiz-p9c-cart-content .woocommerce-shipping-destination,
.bupiz-p9c-cart-content .woocommerce-shipping-calculator{font-size:11px;}

/* Empty cart */
.bupiz-native-cart-empty .bupiz-p9c-cart-content > .woocommerce{
    display:block;
    max-width:760px;
    margin-inline:auto;
    padding:42px;
    border:1px solid var(--bupiz-p9c-line);
    border-radius:22px;
    background:#fff;
    text-align:center;
    box-shadow:var(--bupiz-p9c-shadow);
}

.bupiz-native-cart-empty .cart-empty{
    margin:0 0 18px !important;
    padding:0 !important;
    border:0 !important;
    box-shadow:none;
    font-size:20px;
    font-weight:900;
}

.bupiz-native-cart-empty .return-to-shop .button{
    min-height:46px;
    padding:12px 24px !important;
    border-radius:12px !important;
    background:var(--bupiz-p9c-navy) !important;
    color:#fff !important;
}

/* =============================
   CHECKOUT
============================= */
.bupiz-p9c-checkout-content > .woocommerce{
    width:100%;
}

.bupiz-p9c-checkout-content form.checkout.woocommerce-checkout{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 430px;
    grid-template-rows:auto 1fr;
    align-items:start;
    gap:0 26px;
}

.bupiz-p9c-checkout-content #customer_details{
    grid-column:1;
    grid-row:1 / span 2;
    width:100% !important;
    margin:0 !important;
    padding:24px;
    border:1px solid var(--bupiz-p9c-line);
    border-radius:var(--bupiz-p9c-radius);
    background:#fff;
    box-shadow:var(--bupiz-p9c-shadow);
}

.bupiz-p9c-checkout-content #customer_details .col-1,
.bupiz-p9c-checkout-content #customer_details .col-2{
    width:100% !important;
    float:none !important;
}

.bupiz-p9c-checkout-content #customer_details .col-2{margin-top:18px;}

.bupiz-p9c-checkout-content #order_review_heading{
    grid-column:2;
    grid-row:1;
    width:100%;
    margin:0 !important;
    padding:21px 22px 12px;
    border:1px solid var(--bupiz-p9c-line);
    border-bottom:0;
    border-radius:var(--bupiz-p9c-radius) var(--bupiz-p9c-radius) 0 0;
    background:#fff;
    color:var(--bupiz-p9c-ink);
    font-size:22px !important;
    line-height:1.2;
    font-weight:900;
    letter-spacing:-.02em;
    box-shadow:0 14px 34px rgba(18,33,58,.06);
}

.bupiz-p9c-checkout-content #order_review{
    grid-column:2;
    grid-row:2;
    width:100% !important;
    margin:0 !important;
    padding:0 22px 22px;
    border:1px solid var(--bupiz-p9c-line);
    border-top:0;
    border-radius:0 0 var(--bupiz-p9c-radius) var(--bupiz-p9c-radius);
    background:#fff;
    box-shadow:0 20px 46px rgba(18,33,58,.08);
}

.bupiz-p9c-section-intro,
.bupiz-p9c-payment-intro{
    display:flex;
    align-items:flex-start;
    gap:12px;
    margin:0 0 18px;
}

.bupiz-p9c-section-intro > span,
.bupiz-p9c-payment-intro > span{
    flex:0 0 auto;
    padding:5px 9px;
    border-radius:999px;
    background:#fff0f7;
    color:var(--bupiz-p9c-pink);
    font-size:10px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.06em;
}

.bupiz-p9c-section-intro h2,
.bupiz-p9c-payment-intro h3{
    margin:0 !important;
    color:var(--bupiz-p9c-ink);
    font-size:20px !important;
    line-height:1.2;
    font-weight:900;
}

.bupiz-p9c-section-intro p,
.bupiz-p9c-payment-intro p{
    margin:5px 0 0 !important;
    color:var(--bupiz-p9c-muted);
    font-size:12px;
    line-height:1.5;
}

.bupiz-p9c-checkout-content .woocommerce-billing-fields > h3,
.bupiz-p9c-checkout-content .woocommerce-shipping-fields > h3{
    display:none;
}

.bupiz-p9c-checkout-content .woocommerce-billing-fields__field-wrapper,
.bupiz-p9c-checkout-content .woocommerce-shipping-fields__field-wrapper{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px 16px;
}

.bupiz-p9c-checkout-content .form-row{
    width:100% !important;
    float:none !important;
    margin:0 !important;
    padding:0 !important;
}

.bupiz-p9c-checkout-content .form-row-wide,
.bupiz-p9c-checkout-content #billing_address_1_field,
.bupiz-p9c-checkout-content #billing_address_2_field,
.bupiz-p9c-checkout-content #billing_email_field{
    grid-column:1 / -1;
}

.bupiz-p9c-checkout-content .form-row label{
    display:block;
    margin:0 0 6px;
    color:#344054;
    font-size:11px;
    line-height:1.3;
    font-weight:800;
}

.bupiz-p9c-checkout-content .form-row .required{color:#d92d20;}

.bupiz-p9c-checkout-content .input-text,
.bupiz-p9c-checkout-content select,
.bupiz-p9c-checkout-content .select2-container .select2-selection--single{
    width:100% !important;
    min-height:44px !important;
    margin:0 !important;
    padding:10px 12px !important;
    border:1px solid #d9dfe7 !important;
    border-radius:11px !important;
    background:#fff !important;
    color:#263248 !important;
    box-shadow:none !important;
    font-size:13px !important;
}

.bupiz-p9c-checkout-content textarea.input-text{min-height:96px !important;resize:vertical;}

.bupiz-p9c-checkout-content .select2-container .select2-selection--single{
    display:flex;
    align-items:center;
}

.bupiz-p9c-checkout-content .select2-selection__rendered{padding:0 !important;line-height:1.3 !important;}
.bupiz-p9c-checkout-content .select2-selection__arrow{height:42px !important;}

.bupiz-p9c-checkout-content .input-text:focus,
.bupiz-p9c-checkout-content select:focus,
.bupiz-p9c-checkout-content .select2-container--focus .select2-selection{
    border-color:var(--bupiz-p9c-orange) !important;
    box-shadow:0 0 0 3px rgba(94,34,164,.12) !important;
    outline:0 !important;
}

.bupiz-p9c-checkout-content .bupiz-saved-address-box,
.bupiz-p9c-checkout-content .bupiz-checkout-address-card{
    margin:0 0 18px !important;
    padding:16px !important;
    border:1px solid #eadde4 !important;
    border-radius:14px !important;
    background:#fff8fb !important;
    color:var(--bupiz-p9c-ink) !important;
}

.bupiz-p9c-checkout-content .bupiz-saved-address-head{
    margin:0 0 10px;
    font-size:14px;
    font-weight:900;
}

.bupiz-p9c-checkout-content .bupiz-saved-address-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px;
    align-items:center;
}

.bupiz-p9c-checkout-content #bupiz-save-checkout-address-btn{
    min-height:44px !important;
    padding:10px 15px !important;
    border-radius:11px !important;
    white-space:nowrap;
}

.bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table{
    width:100%;
    margin:0 0 18px !important;
    border:0 !important;
    border-collapse:separate !important;
    border-spacing:0 !important;
}

.bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table th,
.bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table td{
    padding:11px 0 !important;
    border:0 !important;
    border-bottom:1px solid #edf0f4 !important;
    color:#475467;
    font-size:12px;
    vertical-align:top;
}

.bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table th:last-child,
.bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table td:last-child{text-align:right;}

.bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table thead th{
    color:#7b8596;
    font-size:10px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.07em;
}

.bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .product-name{
    padding-right:12px !important;
    color:var(--bupiz-p9c-ink);
    font-weight:700;
}

.bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .order-total th,
.bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .order-total td{
    padding-top:16px !important;
    border-bottom:0 !important;
    color:var(--bupiz-p9c-ink);
    font-size:16px;
    font-weight:900;
}

.bupiz-p9c-checkout-content #payment{
    margin-top:2px;
    border:0 !important;
    border-radius:14px !important;
    background:#f8f9fb !important;
}

.bupiz-p9c-checkout-content #payment ul.payment_methods{
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
}

.bupiz-p9c-checkout-content #payment ul.payment_methods li{
    margin:0 !important;
    padding:13px 14px !important;
    border-bottom:1px solid #e8ecf1;
}

.bupiz-p9c-checkout-content #payment ul.payment_methods li:last-child{border-bottom:0;}

.bupiz-p9c-checkout-content #payment ul.payment_methods label{
    color:var(--bupiz-p9c-ink);
    font-size:13px;
    font-weight:800;
}

.bupiz-p9c-checkout-content #payment div.payment_box{
    margin:10px 0 0 !important;
    padding:12px !important;
    border-radius:10px !important;
    background:#fff !important;
    color:#667085 !important;
    font-size:11px;
}

.bupiz-p9c-checkout-content #payment .place-order{
    margin:0 !important;
    padding:16px 0 0 !important;
}

.bupiz-p9c-checkout-content #place_order{
    width:100% !important;
    min-height:52px !important;
    float:none !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    margin:0 !important;
    padding:13px 18px !important;
    border:1px solid var(--bupiz-p9c-orange) !important;
    border-radius:13px !important;
    background:linear-gradient(135deg,#6c2db2 0%,#5e22a4 100%) !important;
    color:#fff !important;
    font-size:14px !important;
    font-weight:800 !important;
    box-shadow:0 10px 24px rgba(94,34,164,.18) !important;
}

.bupiz-p9c-checkout-content #place_order.is-processing{opacity:.72;pointer-events:none;}

.bupiz-p9c-checkout-content .woocommerce-privacy-policy-text{
    color:#7b8596;
    font-size:10px;
    line-height:1.5;
}

.bupiz-p9c-checkout-content .bupiz-wallet-checkout-box{
    margin:0 0 14px !important;
    padding:14px !important;
    border:1px solid #f3d7a2 !important;
    border-radius:12px !important;
    background:#fffaf0 !important;
}

.bupiz-p9c-checkout-content .bupiz-wallet-checkout-title{
    color:var(--bupiz-p9c-ink);
    font-size:13px;
    font-weight:900;
}

.bupiz-p9c-checkout-content .bupiz-wallet-checkout-max,
.bupiz-p9c-checkout-content .bupiz-wallet-checkout-note{
    color:#667085;
    font-size:10px;
    line-height:1.45;
}

.bupiz-p9c-checkout-content .bupiz-wallet-checkout-toggle{
    display:flex;
    gap:8px;
    align-items:center;
    margin:10px 0 6px;
    color:#344054;
    font-size:11px;
    font-weight:800;
}

/* Order received / payment endpoints */
.bupiz-p9c-checkout-content .woocommerce-order,
.bupiz-p9c-checkout-content .woocommerce-order-pay{
    max-width:1040px;
    margin-inline:auto;
}

.bupiz-p9c-checkout-content .woocommerce-order-overview{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
    margin:0 0 20px !important;
    padding:0 !important;
    list-style:none;
}

.bupiz-p9c-checkout-content .woocommerce-order-overview li{
    min-width:0;
    margin:0 !important;
    padding:15px !important;
    border:1px solid var(--bupiz-p9c-line) !important;
    border-radius:14px;
    background:#fff;
    color:#7b8596;
    font-size:9px !important;
    line-height:1.3;
    text-transform:uppercase;
    letter-spacing:.06em;
}

.bupiz-p9c-checkout-content .woocommerce-order-overview li strong{
    display:block;
    margin-top:5px;
    color:var(--bupiz-p9c-ink);
    font-size:13px;
    line-height:1.35;
    text-transform:none;
    letter-spacing:0;
}

.bupiz-p9c-checkout-content .woocommerce-order-details,
.bupiz-p9c-checkout-content .woocommerce-customer-details,
.bupiz-p9c-checkout-content .woocommerce-order-pay form{
    margin:0 0 18px !important;
    padding:22px;
    border:1px solid var(--bupiz-p9c-line);
    border-radius:var(--bupiz-p9c-radius);
    background:#fff;
    box-shadow:var(--bupiz-p9c-shadow);
}

/* Updating state */
.bupiz-p9c-is-updating .bupiz-p9c-checkout-content #order_review,
.bupiz-p9c-is-updating .bupiz-p9c-cart-content .cart_totals{
    opacity:.66;
    transition:opacity .2s ease;
}

/* Trust row */
.bupiz-p9c-trust{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
    margin-top:24px;
}

.bupiz-p9c-trust__item{
    display:flex;
    align-items:flex-start;
    gap:11px;
    min-width:0;
    padding:15px;
    border:1px solid var(--bupiz-p9c-line);
    border-radius:15px;
    background:#fff;
}

.bupiz-p9c-trust__icon{
    flex:0 0 38px;
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border-radius:12px;
    background:#fff4f9;
    color:var(--bupiz-p9c-pink);
    font-size:17px;
    font-weight:900;
}

.bupiz-p9c-trust__icon[data-icon="shield"]::before{content:"✓";}
.bupiz-p9c-trust__icon[data-icon="truck"]::before{content:"→";}
.bupiz-p9c-trust__icon[data-icon="return"]::before{content:"↺";}
.bupiz-p9c-trust__icon[data-icon="wallet"]::before{content:"₹";}

.bupiz-p9c-trust__item strong{
    display:block;
    color:var(--bupiz-p9c-ink);
    font-size:12px;
    line-height:1.3;
    font-weight:900;
}

.bupiz-p9c-trust__item small{
    display:block;
    margin-top:4px;
    color:#7b8596;
    font-size:10px;
    line-height:1.45;
}

@media (min-width:1100px){
    .bupiz-p9c-cart-content .cart_totals,
    .bupiz-p9c-checkout-content #order_review_heading,
    .bupiz-p9c-checkout-content #order_review{
        position:relative;
    }
}

@media (max-width:1199px){
    .bupiz-p9c-hero__inner{grid-template-columns:1fr;gap:22px;}
    .bupiz-p9c-progress{max-width:720px;}
    .bupiz-p9c-cart-content > .woocommerce{grid-template-columns:minmax(0,1fr) 340px;}
    .bupiz-p9c-checkout-content form.checkout.woocommerce-checkout{grid-template-columns:minmax(0,1fr) 380px;gap:0 20px;}
}

@media (max-width:980px){
    .bupiz-p9c-container{width:min(100% - 24px, 900px);}
    .bupiz-p9c-cart-content > .woocommerce{display:block;}
    .bupiz-p9c-cart-content .cart-collaterals{margin-top:18px !important;}
    .bupiz-p9c-checkout-content form.checkout.woocommerce-checkout{display:block !important;}
    .bupiz-p9c-checkout-content #order_review_heading{margin-top:20px !important;}
    .bupiz-p9c-checkout-content #customer_details{padding:20px;}
    .bupiz-p9c-trust{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media (max-width:767px){
    .bupiz-p9c-commerce{padding-bottom:92px;}
    .bupiz-p9c-hero{padding:20px 0 18px;}
    .bupiz-p9c-hero__copy h1{font-size:28px;}
    .bupiz-p9c-hero__copy p{font-size:13px;line-height:1.55;}
    .bupiz-p9c-progress{padding:7px;}
    .bupiz-p9c-progress__step{justify-content:center;padding:8px 4px;gap:0;}
    .bupiz-p9c-progress__number{width:30px;height:30px;flex-basis:30px;}
    .bupiz-p9c-progress__copy{display:none;}
    .bupiz-p9c-content{padding-top:16px;}
    .bupiz-p9c-cart-content .woocommerce-cart-form{padding:12px;border-radius:16px;}

    .bupiz-p9c-cart-content table.shop_table,
    .bupiz-p9c-cart-content table.shop_table tbody,
    .bupiz-p9c-cart-content table.shop_table tr,
    .bupiz-p9c-cart-content table.shop_table td{display:block;width:100%;}

    .bupiz-p9c-cart-content table.shop_table thead{display:none;}
    .bupiz-p9c-cart-content table.shop_table tr.cart_item{
        position:relative;
        display:grid;
        grid-template-columns:86px minmax(0,1fr);
        gap:0 12px;
        padding:12px 0 16px;
        border-bottom:1px solid #edf0f4;
    }

    .bupiz-p9c-cart-content table.shop_table tbody td{
        padding:4px 0 !important;
        border:0 !important;
        text-align:left !important;
    }

    .bupiz-p9c-cart-content .product-remove{
        position:absolute;
        top:8px;
        right:0;
        z-index:2;
        width:30px !important;
    }

    .bupiz-p9c-cart-content .product-thumbnail{
        grid-column:1;
        grid-row:1 / span 5;
        width:86px !important;
    }

    .bupiz-p9c-cart-content .product-thumbnail::before,
    .bupiz-p9c-cart-content .product-name::before,
    .bupiz-p9c-cart-content .product-price::before,
    .bupiz-p9c-cart-content .product-quantity::before,
    .bupiz-p9c-cart-content .product-subtotal::before{display:none !important;}

    .bupiz-p9c-cart-content .product-thumbnail img{width:78px !important;height:104px !important;}
    .bupiz-p9c-cart-content .product-name,
    .bupiz-p9c-cart-content .product-price,
    .bupiz-p9c-cart-content .product-quantity,
    .bupiz-p9c-cart-content .product-subtotal{grid-column:2;}
    .bupiz-p9c-cart-content .product-name{padding-right:36px !important;}
    .bupiz-p9c-cart-content .product-price{font-size:12px;}
    .bupiz-p9c-cart-content .product-subtotal{display:none !important;}

    .bupiz-p9c-cart-content td.actions{padding-top:14px !important;}
    .bupiz-p9c-cart-content .coupon{display:grid !important;grid-template-columns:1fr auto;}
    .bupiz-p9c-cart-content .coupon input.input-text{width:100% !important;}
    .bupiz-p9c-cart-content td.actions > button[name="update_cart"]{width:100%;margin-top:9px !important;}
    .bupiz-p9c-cart-content .cart_totals{padding:18px;border-radius:16px;}

    .bupiz-p9c-checkout-content #customer_details{padding:16px;border-radius:16px;}
    .bupiz-p9c-checkout-content .woocommerce-billing-fields__field-wrapper,
    .bupiz-p9c-checkout-content .woocommerce-shipping-fields__field-wrapper{grid-template-columns:1fr;gap:12px;}
    .bupiz-p9c-checkout-content .form-row-wide,
    .bupiz-p9c-checkout-content #billing_address_1_field,
    .bupiz-p9c-checkout-content #billing_address_2_field,
    .bupiz-p9c-checkout-content #billing_email_field{grid-column:1;}
    .bupiz-p9c-checkout-content .bupiz-saved-address-row{grid-template-columns:1fr;}
    .bupiz-p9c-checkout-content #bupiz-save-checkout-address-btn{width:100% !important;}
    .bupiz-p9c-checkout-content #order_review_heading{padding:18px 17px 10px;font-size:20px !important;border-radius:16px 16px 0 0;}
    .bupiz-p9c-checkout-content #order_review{padding:0 17px 17px;border-radius:0 0 16px 16px;}
    .bupiz-p9c-checkout-content .woocommerce-order-overview{grid-template-columns:repeat(2,minmax(0,1fr));}
    .bupiz-p9c-trust{grid-template-columns:1fr;gap:8px;}
    .bupiz-p9c-trust__item{padding:12px;}
}

@media (max-width:420px){
    .bupiz-p9c-container{width:calc(100% - 18px);}
    .bupiz-p9c-cart-content table.shop_table tr.cart_item{grid-template-columns:76px minmax(0,1fr);gap:0 9px;}
    .bupiz-p9c-cart-content .product-thumbnail{width:76px !important;}
    .bupiz-p9c-cart-content .product-thumbnail img{width:70px !important;height:94px !important;}
    .bupiz-p9c-cart-content .quantity{grid-template-columns:32px 44px 32px;}
    .bupiz-p9c-cart-content .quantity input.qty{width:44px !important;min-width:44px !important;}
    .bupiz-p9c-qty-button{width:32px;}
}

/* Cart / Checkout product-image reliability patch. */
.bupiz-p9c-checkout-content .bupiz-p9c-checkout-product{
    display:flex;
    align-items:flex-start;
    gap:10px;
    width:100%;
    margin:0 0 4px;
}

.bupiz-p9c-checkout-content .bupiz-p9c-checkout-thumb{
    flex:0 0 48px;
    width:48px;
    height:62px;
    overflow:hidden;
    border-radius:9px;
    background:#f2f4f7;
}

.bupiz-p9c-checkout-content .bupiz-p9c-checkout-thumb img{
    display:block;
    width:48px !important;
    height:62px !important;
    margin:0 !important;
    object-fit:cover;
    border-radius:9px !important;
}

.bupiz-p9c-checkout-content .bupiz-p9c-checkout-product__name{
    min-width:0;
    padding-top:1px;
    color:var(--bupiz-p9c-ink);
    line-height:1.4;
}

.bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .product-name > .product-quantity{
    display:inline-block;
    margin-left:58px;
}

.bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .product-name > .variation{
    margin-left:58px !important;
}

@media (max-width:420px){
    .bupiz-p9c-checkout-content .bupiz-p9c-checkout-product{gap:8px;}
    .bupiz-p9c-checkout-content .bupiz-p9c-checkout-thumb{
        flex-basis:44px;
        width:44px;
        height:57px;
    }
    .bupiz-p9c-checkout-content .bupiz-p9c-checkout-thumb img{
        width:44px !important;
        height:57px !important;
    }
    .bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .product-name > .product-quantity,
    .bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .product-name > .variation{
        margin-left:52px !important;
    }
}



/* ============================================================
   Buy Now — saved bag reassurance
   Presentation only: the existing Buy Now/session logic is untouched.
============================================================ */
.bupiz-p9c-saved-bag{
    width:100%;
    margin:0 0 18px;
    border:1px solid rgba(219,225,234,.96);
    border-radius:16px;
    background:linear-gradient(135deg,rgba(255,255,255,.99) 0%,rgba(255,249,252,.98) 58%,rgba(255,250,244,.98) 100%);
    box-shadow:0 12px 34px rgba(18,33,58,.07);
    overflow:hidden;
}

.bupiz-p9c-saved-bag[open]{
    box-shadow:0 16px 42px rgba(18,33,58,.09);
}

.bupiz-p9c-saved-bag__summary{
    min-height:76px;
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
    gap:15px;
    padding:12px 16px;
    cursor:pointer;
    list-style:none;
    user-select:none;
}

.bupiz-p9c-saved-bag__summary::-webkit-details-marker{display:none;}
.bupiz-p9c-saved-bag__summary::marker{display:none;content:"";}

.bupiz-p9c-saved-bag__visual{
    display:flex;
    align-items:center;
    gap:10px;
}

.bupiz-p9c-saved-bag__bag-icon{
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    flex:0 0 38px;
    border:1px solid #ffe0c3;
    border-radius:12px;
    background:#fff6ed;
    color:var(--bupiz-p9c-orange);
}

.bupiz-p9c-saved-bag__bag-icon svg{
    width:20px;
    height:20px;
    fill:currentColor;
}

.bupiz-p9c-saved-bag__thumbs{
    display:flex;
    align-items:center;
    padding-left:5px;
}

.bupiz-p9c-saved-bag__thumb{
    width:36px;
    height:46px;
    display:grid;
    place-items:center;
    overflow:hidden;
    margin-left:-7px;
    border:2px solid #fff;
    border-radius:9px;
    background:#f2f4f7;
    box-shadow:0 4px 12px rgba(18,33,58,.10);
}

.bupiz-p9c-saved-bag__thumb:first-child{margin-left:0;}

.bupiz-p9c-saved-bag__thumb img,
.bupiz-p9c-saved-bag__item-image img{
    width:100% !important;
    height:100% !important;
    display:block;
    margin:0 !important;
    object-fit:cover;
}

.bupiz-p9c-saved-bag__thumb--more{
    background:var(--bupiz-p9c-navy);
    color:#fff;
    font-size:10px;
    font-weight:900;
}

.bupiz-p9c-saved-bag__copy{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:3px;
}

.bupiz-p9c-saved-bag__copy strong{
    color:var(--bupiz-p9c-ink);
    font-size:14px;
    line-height:1.35;
    font-weight:900;
}

.bupiz-p9c-saved-bag__copy small{
    color:#7a8494;
    font-size:11.5px;
    line-height:1.4;
}

.bupiz-p9c-saved-bag__action{
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:8px 11px;
    border:1px solid #e1e6ed;
    border-radius:999px;
    background:rgba(255,255,255,.88);
    color:#344054;
    font-size:11px;
    line-height:1;
    font-weight:900;
    white-space:nowrap;
}

.bupiz-p9c-saved-bag__action svg{
    width:15px;
    height:15px;
    fill:currentColor;
    transition:transform .18s ease;
}

.bupiz-p9c-saved-bag[open] .bupiz-p9c-saved-bag__action svg{transform:rotate(180deg);}

.bupiz-p9c-saved-bag__panel{
    padding:0 16px 15px;
    border-top:1px solid rgba(228,232,239,.9);
}

.bupiz-p9c-saved-bag__panel-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:14px 2px 10px;
}

.bupiz-p9c-saved-bag__panel-head > div{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:2px;
}

.bupiz-p9c-saved-bag__panel-head strong{
    color:var(--bupiz-p9c-ink);
    font-size:12.5px;
    font-weight:900;
}

.bupiz-p9c-saved-bag__panel-head small{
    color:#8a94a6;
    font-size:10.5px;
    line-height:1.35;
}

.bupiz-p9c-saved-bag__count{
    min-width:28px;
    height:28px;
    display:grid;
    place-items:center;
    padding:0 8px;
    border-radius:999px;
    background:#fff1e4;
    color:#d86600;
    font-size:11px;
    font-weight:900;
}

.bupiz-p9c-saved-bag__items{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    max-height:252px;
    overflow:auto;
    padding:1px 3px 1px 1px;
    scrollbar-width:thin;
}

.bupiz-p9c-saved-bag__item{
    min-width:0;
    display:grid;
    grid-template-columns:44px minmax(0,1fr) auto;
    align-items:center;
    gap:10px;
    padding:8px;
    border:1px solid #edf0f4;
    border-radius:12px;
    background:rgba(255,255,255,.82);
}

.bupiz-p9c-saved-bag__item-image{
    width:44px;
    height:56px;
    display:block;
    overflow:hidden;
    border-radius:9px;
    background:#f2f4f7;
}

.bupiz-p9c-saved-bag__item-copy{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:3px;
}

.bupiz-p9c-saved-bag__item-copy strong{
    overflow:hidden;
    color:var(--bupiz-p9c-ink);
    font-size:11.5px;
    line-height:1.35;
    font-weight:850;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.bupiz-p9c-saved-bag__item-copy small{
    overflow:hidden;
    color:#7a8494;
    font-size:9.5px;
    line-height:1.35;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.bupiz-p9c-saved-bag__qty{
    align-self:center;
    padding:5px 7px;
    border-radius:999px;
    background:#f5f7fa;
    color:#596579;
    font-size:9.5px;
    line-height:1;
    font-weight:850;
    white-space:nowrap;
}

.bupiz-p9c-commerce--buy-now .bupiz-p9c-eyebrow{
    color:#d96f00;
}

@media (max-width:767px){
    .bupiz-p9c-saved-bag{margin-bottom:14px;border-radius:14px;}
    .bupiz-p9c-saved-bag__summary{
        min-height:68px;
        grid-template-columns:auto minmax(0,1fr) auto;
        gap:10px;
        padding:10px 11px;
    }
    .bupiz-p9c-saved-bag__bag-icon{display:none;}
    .bupiz-p9c-saved-bag__thumb{width:31px;height:40px;border-radius:8px;}
    .bupiz-p9c-saved-bag__copy strong{font-size:12px;}
    .bupiz-p9c-saved-bag__copy small{font-size:10px;}
    .bupiz-p9c-saved-bag__action{padding:7px 8px;}
    .bupiz-p9c-saved-bag__action > span{display:none;}
    .bupiz-p9c-saved-bag__panel{padding:0 10px 11px;}
    .bupiz-p9c-saved-bag__items{grid-template-columns:1fr;max-height:280px;}
}

@media (max-width:420px){
    .bupiz-p9c-saved-bag__visual{gap:0;}
    .bupiz-p9c-saved-bag__thumbs{padding-left:0;}
    .bupiz-p9c-saved-bag__thumb:nth-child(n+3){display:none;}
    .bupiz-p9c-saved-bag__copy strong{font-size:11.5px;}
    .bupiz-p9c-saved-bag__copy small{font-size:9.5px;}
    .bupiz-p9c-saved-bag__item{grid-template-columns:40px minmax(0,1fr) auto;gap:8px;padding:7px;}
    .bupiz-p9c-saved-bag__item-image{width:40px;height:52px;}
}

/* ============================================================
   Mobile checkout thumbnail visibility hardening
   Presentation only: keeps the existing checkout/cart data flow untouched.
============================================================ */
@media (max-width:767px){
    .bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table td.product-name{
        text-align:left !important;
        overflow:visible !important;
    }

    .bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .bupiz-p9c-checkout-product{
        display:grid !important;
        grid-template-columns:52px minmax(0,1fr);
        align-items:start !important;
        gap:10px !important;
        width:100% !important;
        min-width:0 !important;
        overflow:visible !important;
    }

    .bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .bupiz-p9c-checkout-thumb{
        display:block !important;
        float:none !important;
        position:relative !important;
        flex:none !important;
        width:52px !important;
        min-width:52px !important;
        max-width:52px !important;
        height:68px !important;
        min-height:68px !important;
        margin:0 !important;
        padding:0 !important;
        overflow:hidden !important;
        visibility:visible !important;
        opacity:1 !important;
        border-radius:9px !important;
        background:#f2f4f7;
    }

    .bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .bupiz-p9c-checkout-thumb img,
    .bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .bupiz-p9c-checkout-thumb .woocommerce-placeholder{
        display:block !important;
        float:none !important;
        position:static !important;
        width:52px !important;
        min-width:52px !important;
        max-width:52px !important;
        height:68px !important;
        min-height:68px !important;
        max-height:68px !important;
        margin:0 !important;
        padding:0 !important;
        object-fit:cover !important;
        object-position:center !important;
        visibility:visible !important;
        opacity:1 !important;
        border-radius:9px !important;
    }

    .bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .bupiz-p9c-checkout-product__name{
        display:block !important;
        min-width:0 !important;
        width:auto !important;
        overflow-wrap:anywhere;
        text-align:left !important;
    }

    .bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .product-name > .product-quantity,
    .bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .product-name > .variation{
        margin-left:62px !important;
    }
}

@media (max-width:420px){
    .bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .bupiz-p9c-checkout-product{
        grid-template-columns:46px minmax(0,1fr);
        gap:8px !important;
    }

    .bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .bupiz-p9c-checkout-thumb,
    .bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .bupiz-p9c-checkout-thumb img,
    .bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .bupiz-p9c-checkout-thumb .woocommerce-placeholder{
        width:46px !important;
        min-width:46px !important;
        max-width:46px !important;
        height:60px !important;
        min-height:60px !important;
        max-height:60px !important;
    }

    .bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .product-name > .product-quantity,
    .bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .product-name > .variation{
        margin-left:54px !important;
    }
}

/* ============================================================
   Phase 9C.1 — Approved Bag → Address → Payment flow
   Presentation-only overrides. No cart, pricing, shipping or gateway rules.
============================================================ */

.bupiz-p9c-container{width:min(1180px,calc(100% - 32px));}
.bupiz-p9c-commerce{padding-bottom:38px;}
.bupiz-p9c-hero{padding:20px 0 18px;background:#fff;border-bottom:1px solid #edf0f4;}
.bupiz-p9c-hero__inner{grid-template-columns:minmax(0,1fr) minmax(460px,560px);gap:34px;}
.bupiz-p9c-hero__copy h1{font-size:clamp(28px,2.35vw,38px);}
.bupiz-p9c-hero__copy p{margin-top:7px;font-size:13px;line-height:1.5;}
.bupiz-p9c-progress{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;}
.bupiz-p9c-progress__step{padding:8px 12px;}
.bupiz-p9c-progress__step:not(:last-child)::after{right:-16px;width:32px;background:#ccd3dd;}
.bupiz-p9c-progress__number{width:26px;height:26px;flex-basis:26px;font-size:10px;}
.bupiz-p9c-progress__copy strong{font-size:11px;}
.bupiz-p9c-progress__copy small{font-size:9px;}
.bupiz-p9c-content{padding-top:20px;}

/* Bag delivery strip */
.bupiz-p9c-delivery-wrap{padding-top:16px;}
.bupiz-p9c-delivery-preview{
    display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;
    min-height:66px;padding:11px 15px;border:1px solid #e4e8ef;border-radius:14px;background:#fff;
}
.bupiz-p9c-delivery-preview__icon{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#fff3f8;color:var(--bupiz-p9c-pink);}
.bupiz-p9c-delivery-preview__icon svg{width:18px;height:18px;fill:currentColor;}
.bupiz-p9c-delivery-preview__copy{display:flex;min-width:0;flex-direction:column;gap:2px;}
.bupiz-p9c-delivery-preview__copy strong{font-size:12px;color:var(--bupiz-p9c-ink);}
.bupiz-p9c-delivery-preview__copy small{overflow:hidden;color:#667085;font-size:10.5px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap;}
.bupiz-p9c-delivery-preview__action{padding:8px 10px;color:var(--bupiz-p9c-pink);font-size:11px;font-weight:900;text-decoration:none;}

/* Cart selection bar */
.bupiz-p9c-selection-bar{
    grid-column:1/-1;display:flex;align-items:center;gap:9px;margin-bottom:12px;padding:11px 14px;
    border:1px solid #edf0f4;border-radius:12px;background:#fff;color:#344054;font-size:11px;
}
.bupiz-p9c-selection-bar__check{width:20px;height:20px;display:grid;place-items:center;border-radius:5px;background:var(--bupiz-p9c-pink);color:#fff;font-size:12px;font-weight:900;}
.bupiz-p9c-selection-bar__value{margin-left:auto;color:var(--bupiz-p9c-pink);font-weight:900;}

/* Premium bag proportions */
.bupiz-p9c-cart-content > .woocommerce{grid-template-columns:minmax(0,1fr) 350px;gap:18px;}
.bupiz-p9c-cart-content .woocommerce-cart-form{padding:14px;border-radius:14px;box-shadow:0 8px 26px rgba(18,33,58,.05);}
.bupiz-p9c-cart-content table.shop_table tbody td{padding:15px 9px!important;}
.bupiz-p9c-cart-content .product-thumbnail{width:92px;}
.bupiz-p9c-cart-content .product-thumbnail img{width:76px!important;height:102px!important;border-radius:10px!important;}
.bupiz-p9c-cart-content .product-name a{font-size:13.5px;font-weight:650;}
.bupiz-p9c-cart-content .variation{margin-top:5px!important;font-size:10px;}
.bupiz-p9c-cart-content .product-price,.bupiz-p9c-cart-content .product-subtotal{font-size:13px;}
.bupiz-p9c-cart-content .cart_totals{padding:18px;border-radius:14px;box-shadow:0 8px 26px rgba(18,33,58,.05);}
.bupiz-p9c-cart-content .cart_totals h2{font-size:18px!important;}
.bupiz-p9c-cart-content .cart_totals h2::after{content:" · Price details";color:#98a2b3;font-size:10px;font-weight:700;letter-spacing:0;}
.bupiz-p9c-cart-content .cart_totals th,.bupiz-p9c-cart-content .cart_totals td{padding:10px 0!important;font-size:12px;}
.bupiz-p9c-cart-content .checkout-button{min-height:48px!important;border-radius:10px!important;background:linear-gradient(135deg,#6c2db2,#5e22a4)!important;box-shadow:none!important;font-weight:800!important;}

/* Coupon collapsed into one clean row */
.bupiz-p9c-coupon-toggle{
    width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;padding:11px 12px;
    border:1px solid #e4e8ef;border-radius:11px;background:#fff;color:#172033;text-align:left;cursor:pointer;
}
.bupiz-p9c-coupon-toggle>span:first-child{display:flex;flex-direction:column;gap:2px;}
.bupiz-p9c-coupon-toggle strong{font-size:11px;}
.bupiz-p9c-coupon-toggle small{color:#8a94a6;font-size:9px;}
.bupiz-p9c-coupon-toggle>span:last-child{color:var(--bupiz-p9c-pink);font-size:23px;line-height:1;transition:transform .18s ease;}
.bupiz-p9c-coupon-toggle[aria-expanded="true"]>span:last-child{transform:rotate(90deg);}
.bupiz-p9c-cart-content .bupiz-p9c-coupon-panel{display:none!important;}
.bupiz-p9c-cart-content .bupiz-p9c-coupon-panel.is-open{display:flex!important;}

/* Checkout columns — desktop/laptop final owner. Mobile/tablet keep the previous rules below. */
@media (min-width:981px){
    .bupiz-p9c-checkout-content{
        --bupiz-p9c-checkout-side:400px;
        --bupiz-p9c-checkout-gap:24px;
    }

    .bupiz-p9c-commerce--checkout .bupiz-p9c-hero{
        padding:22px 0 20px;
        background:#fff;
        border-bottom:1px solid #ebe7f0;
    }
    .bupiz-p9c-commerce--checkout .bupiz-p9c-hero__inner{
        grid-template-columns:minmax(0,1fr) minmax(470px,560px);
        gap:36px;
    }
    .bupiz-p9c-commerce--checkout .bupiz-p9c-hero__copy .bupiz-p9c-eyebrow{display:none;}
    .bupiz-p9c-commerce--checkout .bupiz-p9c-hero__copy h1{
        color:#3d0b70;
        font-size:28px;
        font-weight:800;
        letter-spacing:-.025em;
    }
    .bupiz-p9c-commerce--checkout .bupiz-p9c-hero__copy p{
        margin-top:5px;
        color:#667085;
        font-size:13px;
        line-height:1.45;
    }
    .bupiz-p9c-commerce--checkout .bupiz-p9c-progress__step.is-active .bupiz-p9c-progress__number{
        border-color:#5e22a4;
        background:#5e22a4;
        color:#fff;
        box-shadow:0 5px 14px rgba(94,34,164,.16);
    }
    .bupiz-p9c-commerce--checkout .bupiz-p9c-progress__step.is-active .bupiz-p9c-progress__copy strong{color:#4f118f;}

    /* Buy Now reassurance uses the left checkout column width and replaces the older duplicate notice. */
    .bupiz-p9c-checkout-content > .bupiz-p9c-saved-bag{
        width:calc(100% - var(--bupiz-p9c-checkout-side) - var(--bupiz-p9c-checkout-gap));
        margin:0 0 18px;
        border:1px solid #e5d9f2;
        border-radius:14px;
        background:linear-gradient(180deg,#fcf9ff 0%,#f8f2ff 100%);
        box-shadow:none;
    }
    .bupiz-p9c-checkout-content > .bupiz-p9c-saved-bag .bupiz-p9c-saved-bag__summary{
        min-height:74px;
        grid-template-columns:42px minmax(0,1fr) auto;
        gap:12px;
        padding:14px 18px;
    }
    .bupiz-p9c-checkout-content > .bupiz-p9c-saved-bag .bupiz-p9c-saved-bag__thumbs{display:none;}
    .bupiz-p9c-checkout-content > .bupiz-p9c-saved-bag .bupiz-p9c-saved-bag__bag-icon{
        display:grid;
        width:40px;
        height:40px;
        border-radius:50%;
        background:#f1e7ff;
        color:#5e22a4;
    }
    .bupiz-p9c-checkout-content > .bupiz-p9c-saved-bag .bupiz-p9c-saved-bag__copy strong{font-size:13px;color:#1f2937;}
    .bupiz-p9c-checkout-content > .bupiz-p9c-saved-bag .bupiz-p9c-saved-bag__copy small{font-size:11px;color:#667085;}
    .bupiz-p9c-checkout-content > .bupiz-p9c-saved-bag .bupiz-p9c-saved-bag__action{color:#5e22a4;font-size:11px;font-weight:800;}
    .bupiz-p9c-buy-now-legacy-notice{display:none!important;}

    /* Keep WooCommerce's own checkout form intact; only its visual columns are refined. */
    .bupiz-p9c-checkout-content form.checkout.woocommerce-checkout{
        display:grid!important;
        grid-template-columns:minmax(0,1fr) var(--bupiz-p9c-checkout-side);
        grid-template-rows:auto;
        gap:var(--bupiz-p9c-checkout-gap);
        align-items:start;
    }
    .bupiz-p9c-checkout-content #customer_details{
        grid-column:1;
        grid-row:auto;
        padding:20px;
        border:1px solid #e8e1ee;
        border-radius:16px;
        background:#fff;
        box-shadow:0 10px 30px rgba(52,28,79,.045);
    }
    .bupiz-p9c-order-summary-column{
        grid-column:2;
        min-width:0;
        position:sticky;
        top:18px;
    }
    .bupiz-p9c-checkout-content .bupiz-p9c-order-summary-column #order_review_heading,
    .bupiz-p9c-checkout-content .bupiz-p9c-order-summary-column #order_review{
        grid-column:auto;
        grid-row:auto;
        width:100%;
    }

    /* Delivery address: light lavender selected state, one clear edit/add path. */
    .bupiz-p9c-section-intro{
        margin-bottom:14px;
        gap:0;
    }
    .bupiz-p9c-section-intro>span{display:none;}
    .bupiz-p9c-section-intro h2{
        margin:0!important;
        color:#1f2937;
        font-size:16px!important;
        font-weight:800!important;
        letter-spacing:-.01em;
        text-transform:uppercase;
    }
    .bupiz-p9c-section-intro p{margin-top:4px!important;color:#7b7282;font-size:10.5px;}
    .bupiz-p9c-checkout-content .woocommerce-billing-fields>h3{display:none!important;}
    .bupiz-p9c-checkout-content .bupiz-saved-address-box{margin:0!important;padding:0!important;border:0!important;background:transparent!important;}
    .bupiz-p9c-checkout-content .bupiz-saved-address-box>.bupiz-saved-address-head,
    .bupiz-p9c-checkout-content .bupiz-saved-address-row{display:none!important;}
    .bupiz-p9c-address-book{
        display:flex;
        flex-direction:column;
        border:0;
        border-radius:0;
        background:transparent;
        overflow:visible;
    }
    .bupiz-p9c-address-book__head{display:contents;}
    .bupiz-p9c-address-book__head>div{
        order:1;
        display:flex;
        flex-direction:column;
        gap:2px;
        margin-bottom:9px;
    }
    .bupiz-p9c-address-book__head small{color:#8a8490;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;}
    .bupiz-p9c-address-book__head strong{color:#1f2937;font-size:12px;}
    .bupiz-p9c-address-choices{
        order:2;
        display:grid;
        gap:0;
        overflow:hidden;
        border:1px solid #e5d9f2;
        border-radius:13px;
        background:#fff;
    }
    .bupiz-p9c-address-choice{
        position:relative;
        width:100%;
        display:grid;
        grid-template-columns:20px minmax(0,1fr) auto;
        gap:10px;
        align-items:start;
        padding:14px 15px;
        border:0;
        border-bottom:1px solid #eee8f3;
        background:#fff;
        color:#414151;
        text-align:left;
        cursor:pointer;
    }
    .bupiz-p9c-address-choice:last-child{border-bottom:0;}
    .bupiz-p9c-address-choice.is-selected{background:#fbf8ff;box-shadow:none;}
    .bupiz-p9c-address-choice__radio{width:17px;height:17px;margin-top:2px;border:1.5px solid #a9a2b1;border-radius:50%;background:#fff;}
    .bupiz-p9c-address-choice.is-selected .bupiz-p9c-address-choice__radio{border:5px solid #5e22a4;}
    .bupiz-p9c-address-choice__copy{display:flex;min-width:0;flex-direction:column;gap:3px;}
    .bupiz-p9c-address-choice__name{display:flex;align-items:center;gap:7px;}
    .bupiz-p9c-address-choice__name strong{color:#1f2937;font-size:12px;font-weight:800;}
    .bupiz-p9c-address-choice__name em{padding:2px 6px;border:1px solid #b9eadb;border-radius:999px;color:#07845d;font-size:7.5px;font-style:normal;font-weight:900;}
    .bupiz-p9c-address-choice__copy small{color:#667085;font-size:10px;line-height:1.45;}
    .bupiz-p9c-address-choice__use{align-self:center;color:#5e22a4;font-size:9px;font-weight:850;}
    .bupiz-p9c-address-book__add{
        order:3;
        width:100%;
        min-height:48px;
        margin-top:11px;
        padding:10px 14px;
        border:1px dashed #cdb1eb;
        border-radius:11px;
        background:#f4edff;
        color:#5e22a4;
        font-size:11px;
        font-weight:800;
        text-align:left;
        cursor:pointer;
    }
    .bupiz-p9c-address-book__add:hover{border-color:#9c68d0;background:#f8f2ff;color:#4f118f;}
    .bupiz-p9c-address-empty{padding:16px;text-align:center;}
    .bupiz-p9c-address-empty strong,.bupiz-p9c-address-empty small{display:block;}
    .bupiz-p9c-address-empty strong{color:#1f2937;font-size:11px;}
    .bupiz-p9c-address-empty small{margin-top:4px;color:#8a8490;font-size:9px;}
    .bupiz-p9c-checkout-content .bupiz-checkout-address-msg{min-height:0;margin:7px 2px 0;color:#667085;font-size:9px;}
    .bupiz-p9c-checkout-content .bupiz-checkout-address-msg.success{color:#07845d;}
    .bupiz-p9c-checkout-content .bupiz-checkout-address-msg.error{color:#b42318;}

    /* Add/edit remains the existing WooCommerce/Bupiz address form; only its styling changes. */
    .bupiz-p9c-checkout-content .woocommerce-billing-fields__field-wrapper{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
        padding:14px;
        border:1px solid #e8e1ee;
        border-radius:13px;
        background:#fbfaff;
    }
    .bupiz-p9c-checkout-content #customer_details.has-saved-addresses:not(.is-address-editing) .woocommerce-billing-fields__field-wrapper,
    .bupiz-p9c-checkout-content #customer_details.has-saved-addresses:not(.is-address-editing) .bupiz-p9c-address-editor-actions{
        position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;
    }
    .bupiz-p9c-address-editor-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:8px;margin:10px 0 0;}
    .bupiz-p9c-address-editor-actions .button{width:100%!important;min-height:42px!important;margin:0!important;border-radius:9px!important;}
    .bupiz-p9c-address-editor-actions .button.bupiz-p9c-address-editor-cancel{
        border:1px solid #cdb1eb!important;
        background:#f4edff!important;
        color:#5e22a4!important;
        box-shadow:none!important;
    }
    .bupiz-p9c-address-editor-actions .button.bupiz-p9c-address-editor-cancel:hover,
    .bupiz-p9c-address-editor-actions .button.bupiz-p9c-address-editor-cancel:focus-visible{
        border-color:#8e4bd0!important;
        background:#eadcff!important;
        color:#4f118f!important;
        box-shadow:none!important;
        outline:none!important;
    }
    .bupiz-p9c-checkout-content #bupiz-save-checkout-address-btn{border:1px solid #5e22a4!important;background:#5e22a4!important;color:#fff!important;}
    .bupiz-p9c-checkout-content .form-row{margin:0!important;}
    .bupiz-p9c-checkout-content .form-row label{margin-bottom:4px!important;color:#414151;font-size:10px;font-weight:750;}
    .bupiz-p9c-checkout-content .input-text,
    .bupiz-p9c-checkout-content select,
    .bupiz-p9c-checkout-content .select2-container .select2-selection--single{min-height:42px!important;border-color:#d8d1df!important;border-radius:9px!important;background:#fff!important;font-size:11px!important;}
    .bupiz-p9c-checkout-content .input-text:focus,
    .bupiz-p9c-checkout-content select:focus,
    .bupiz-p9c-checkout-content .select2-container--focus .select2-selection{border-color:#8e4bd0!important;box-shadow:0 0 0 3px rgba(94,34,164,.10)!important;}

    /* Native Woo coupon form stays outside the checkout form (valid HTML/security); it is aligned to the left column. */
    .bupiz-p9c-checkout-content .woocommerce-form-coupon-toggle,
    .bupiz-p9c-checkout-content form.checkout_coupon{
        width:calc(100% - var(--bupiz-p9c-checkout-side) - var(--bupiz-p9c-checkout-gap));
        max-width:none;
        margin-left:0!important;
        margin-right:auto!important;
    }
    .bupiz-p9c-checkout-content .woocommerce-form-coupon-toggle::before{
        content:"COUPONS & OFFERS";
        display:block;
        margin:0 0 8px;
        color:#1f2937;
        font-size:13px;
        font-weight:800;
        letter-spacing:.01em;
    }
    .bupiz-p9c-checkout-content .woocommerce-form-coupon-toggle .woocommerce-info{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:12px;
        min-height:58px;
        margin:0!important;
        padding:14px 16px!important;
        border:1px solid #e5d9f2!important;
        border-radius:12px!important;
        background:#fbf8ff!important;
        color:#414151!important;
        box-shadow:none!important;
        font-size:11px!important;
    }
    .bupiz-p9c-checkout-content .woocommerce-form-coupon-toggle .woocommerce-info::before{display:none!important;}
    .bupiz-p9c-checkout-content .woocommerce-form-coupon-toggle .showcoupon{margin-left:auto;color:#5e22a4!important;font-weight:800;text-decoration:none!important;white-space:nowrap;}
    .bupiz-p9c-checkout-content form.checkout_coupon{
        margin-top:9px!important;
        padding:14px!important;
        border:1px solid #e5d9f2!important;
        border-radius:12px!important;
        background:#fff!important;
        box-shadow:none!important;
    }
    .bupiz-p9c-checkout-content form.checkout_coupon .form-row{margin:0 8px 0 0!important;}
    .bupiz-p9c-checkout-content form.checkout_coupon .button{min-height:42px!important;border:1px solid #5e22a4!important;border-radius:9px!important;background:#5e22a4!important;color:#fff!important;font-weight:800!important;}

    /* Sticky order summary is the single checkout decision centre. */
    .bupiz-p9c-checkout-content #order_review_heading{
        margin:0!important;
        padding:18px 18px 11px;
        border:1px solid #e8e1ee;
        border-bottom:0;
        border-radius:16px 16px 0 0;
        background:#fff;
        color:#1f2937;
        font-size:17px!important;
        font-weight:800!important;
        box-shadow:none;
    }
    .bupiz-p9c-checkout-content #order_review{
        padding:0 18px 18px;
        border:1px solid #e8e1ee;
        border-top:0;
        border-radius:0 0 16px 16px;
        background:#fff;
        box-shadow:0 12px 34px rgba(52,28,79,.06);
    }
    .bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table{margin-bottom:12px!important;border-collapse:collapse!important;}
    .bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table th,
    .bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table td{padding:10px 0!important;color:#414151;font-size:10.5px;}
    .bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table thead{display:none;}
    .bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .product-name{color:#1f2937;font-weight:650;}
    .bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .cart-subtotal th,
    .bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .woocommerce-shipping-totals th{font-weight:650;}
    .bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .order-total th,
    .bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .order-total td{padding-top:14px!important;color:#1f2937;font-size:15px;font-weight:800;}
    .bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .order-total td{color:#5e22a4;}

    .bupiz-p9c-checkout-content .bupiz-p9c-payment-intro{margin:2px 0 6px;gap:0;}
    .bupiz-p9c-checkout-content .bupiz-p9c-payment-intro>span{display:none;}
    .bupiz-p9c-checkout-content .bupiz-p9c-payment-intro h3{margin:0!important;color:#1f2937;font-size:13px!important;font-weight:800!important;text-transform:uppercase;}
    .bupiz-p9c-checkout-content .bupiz-p9c-payment-intro p{display:none;}
    .bupiz-p9c-checkout-content #payment{margin-top:0;border:0!important;border-radius:0!important;background:#fff!important;overflow:visible;}
    .bupiz-p9c-checkout-content #payment ul.payment_methods{margin:0!important;padding:0!important;border-top:1px solid #eee8f3!important;}
    .bupiz-p9c-checkout-content #payment ul.payment_methods li{padding:13px 0!important;border-bottom:1px solid #eee8f3!important;background:#fff!important;}
    .bupiz-p9c-checkout-content #payment ul.payment_methods li:last-child{border-bottom:0!important;}
    .bupiz-p9c-checkout-content #payment ul.payment_methods input[type="radio"]{accent-color:#5e22a4;}
    .bupiz-p9c-checkout-content #payment ul.payment_methods label{color:#1f2937;font-size:11.5px;font-weight:750;}
    .bupiz-p9c-checkout-content #payment div.payment_box{margin:9px 0 0!important;padding:10px 11px!important;border:1px solid #eee8f3!important;border-radius:9px!important;background:#fbfaff!important;color:#667085!important;font-size:9.5px;box-shadow:none!important;}
    .bupiz-p9c-checkout-content #payment div.payment_box::before{display:none!important;}
    .bupiz-p9c-checkout-content .bupiz-wallet-checkout-box{border-color:#e0d1f0!important;background:#fbf8ff!important;}
    .bupiz-p9c-checkout-content .bupiz-wallet-checkout-toggle input{accent-color:#5e22a4;}

    .bupiz-p9c-checkout-content #payment .place-order{padding:13px 0 0!important;border-top:1px solid #eee8f3;background:#fff;}
    .bupiz-p9c-checkout-content #payment .place-order>.woocommerce-privacy-policy-text,
    .bupiz-p9c-checkout-content #payment .place-order>.woocommerce-terms-and-conditions-wrapper{display:none!important;}
    .bupiz-p9c-secure-payment-note{
        display:grid;
        grid-template-columns:30px minmax(0,1fr);
        align-items:center;
        gap:9px;
        margin:0 0 11px;
        padding:10px 11px;
        border:1px solid #ddcdf0;
        border-radius:10px;
        background:#f8f2ff;
        color:#5e22a4;
    }
    .bupiz-p9c-secure-payment-note>span:first-child{font-size:17px;text-align:center;}
    .bupiz-p9c-secure-payment-note strong,.bupiz-p9c-secure-payment-note small{display:block;}
    .bupiz-p9c-secure-payment-note strong{font-size:10.5px;font-weight:800;}
    .bupiz-p9c-secure-payment-note small{margin-top:1px;color:#667085;font-size:8.8px;line-height:1.35;}
    .bupiz-p9c-desktop-agreement{margin:0 0 11px;color:#667085;font-size:9px;line-height:1.5;}
    .bupiz-p9c-desktop-agreement a{color:#5e22a4;font-weight:750;text-decoration:none;}
    .bupiz-p9c-desktop-agreement a:hover{text-decoration:underline;}
    .bupiz-p9c-checkout-content #place_order{
        width:100%!important;
        min-height:50px!important;
        margin:0!important;
        border:1px solid #5e22a4!important;
        border-radius:9px!important;
        background:linear-gradient(135deg,#6d18bd 0%,#5e22a4 55%,#4f118f 100%)!important;
        color:#fff!important;
        box-shadow:0 7px 18px rgba(94,34,164,.16)!important;
        font-size:13px!important;
        font-weight:800!important;
        letter-spacing:.01em;
    }
    .bupiz-p9c-checkout-content #place_order:hover,
    .bupiz-p9c-checkout-content #place_order:focus-visible{border-color:#4f118f!important;background:#4f118f!important;box-shadow:0 8px 20px rgba(79,17,143,.20)!important;}

    /* Checkout reassurance stays subtle and uses the same plum family. */
    .bupiz-p9c-commerce--checkout .bupiz-p9c-trust{border-color:#e8e1ee;background:#fff;box-shadow:none;}
    .bupiz-p9c-commerce--checkout .bupiz-p9c-trust__icon{color:#5e22a4;background:#f4edff;}
    .bupiz-p9c-commerce--checkout .bupiz-p9c-trust__item strong{font-size:11.5px;}
    .bupiz-p9c-commerce--checkout .bupiz-p9c-trust__item small{font-size:9.5px;}
}

/* Preserve the approved pre-existing tablet/mobile checkout exactly. */
@media (max-width:980px){
.bupiz-p9c-checkout-content form.checkout.woocommerce-checkout{
    display:grid!important;grid-template-columns:minmax(0,1fr) 390px;grid-template-rows:auto;gap:20px;align-items:start;
}
.bupiz-p9c-checkout-content #customer_details{grid-column:1;grid-row:auto;padding:18px;border-radius:14px;box-shadow:0 8px 26px rgba(18,33,58,.05);}
.bupiz-p9c-order-summary-column{grid-column:2;min-width:0;position:sticky;top:18px;}
.bupiz-p9c-checkout-content .bupiz-p9c-order-summary-column #order_review_heading,
.bupiz-p9c-checkout-content .bupiz-p9c-order-summary-column #order_review{grid-column:auto;grid-row:auto;width:100%;}
.bupiz-p9c-checkout-content #order_review_heading{padding:16px 17px 10px;border-radius:14px 14px 0 0;font-size:17px!important;box-shadow:none;}
.bupiz-p9c-checkout-content #order_review{padding:0 17px 17px;border-radius:0 0 14px 14px;box-shadow:0 8px 26px rgba(18,33,58,.05);}
.bupiz-p9c-section-intro,.bupiz-p9c-payment-intro{margin-bottom:13px;gap:9px;}
.bupiz-p9c-section-intro>span,.bupiz-p9c-payment-intro>span{padding:4px 7px;background:#fff0f7;font-size:8px;}
.bupiz-p9c-section-intro h2,.bupiz-p9c-payment-intro h3{font-size:16px!important;}
.bupiz-p9c-section-intro p,.bupiz-p9c-payment-intro p{margin-top:3px!important;font-size:10px;}
.bupiz-p9c-checkout-content .woocommerce-billing-fields>h3{display:none!important;}

/* Saved addresses become visual single-choice cards while the original select stays as the data bridge. */
.bupiz-p9c-checkout-content .bupiz-saved-address-box{margin:0 0 14px!important;padding:0!important;border:0!important;background:transparent!important;}
.bupiz-p9c-checkout-content .bupiz-saved-address-box>.bupiz-saved-address-head,
.bupiz-p9c-checkout-content .bupiz-saved-address-row{display:none!important;}
.bupiz-p9c-address-book{border:1px solid #e4e8ef;border-radius:13px;background:#fff;overflow:hidden;}
.bupiz-p9c-address-book__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 13px;border-bottom:1px solid #edf0f4;}
.bupiz-p9c-address-book__head>div{display:flex;flex-direction:column;gap:2px;}
.bupiz-p9c-address-book__head small{color:#98a2b3;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;}
.bupiz-p9c-address-book__head strong{color:#172033;font-size:12px;}
.bupiz-p9c-address-book__add{padding:7px 9px;border:1px solid #cdb1eb;border-radius:9px;background:#f4edff;color:#5e22a4;font-size:9px;font-weight:900;cursor:pointer;}
.bupiz-p9c-address-choices{display:grid;gap:0;}
.bupiz-p9c-address-choice{position:relative;width:100%;display:grid;grid-template-columns:19px minmax(0,1fr) auto;gap:9px;align-items:start;padding:12px;border:0;border-bottom:1px solid #edf0f4;background:#fff;color:#344054;text-align:left;cursor:pointer;}
.bupiz-p9c-address-choice:last-child{border-bottom:0;}
.bupiz-p9c-address-choice.is-selected{background:#fbf8ff;box-shadow:inset 3px 0 0 #5e22a4;}
.bupiz-p9c-address-choice__radio{width:16px;height:16px;margin-top:2px;border:1.5px solid #98a2b3;border-radius:50%;background:#fff;}
.bupiz-p9c-address-choice.is-selected .bupiz-p9c-address-choice__radio{border:5px solid var(--bupiz-p9c-pink);}
.bupiz-p9c-address-choice__copy{display:flex;min-width:0;flex-direction:column;gap:3px;}
.bupiz-p9c-address-choice__name{display:flex;align-items:center;gap:7px;}
.bupiz-p9c-address-choice__name strong{color:#172033;font-size:11px;}
.bupiz-p9c-address-choice__name em{padding:2px 5px;border:1px solid #b9eadb;border-radius:999px;color:#07845d;font-size:7px;font-style:normal;font-weight:900;}
.bupiz-p9c-address-choice__copy small{color:#667085;font-size:9px;line-height:1.45;}
.bupiz-p9c-address-choice__use{align-self:center;color:var(--bupiz-p9c-pink);font-size:8px;font-weight:900;}
.bupiz-p9c-address-empty{padding:16px;text-align:center;}
.bupiz-p9c-address-empty strong,.bupiz-p9c-address-empty small{display:block;}
.bupiz-p9c-address-empty strong{color:#172033;font-size:11px;}
.bupiz-p9c-address-empty small{margin-top:4px;color:#8a94a6;font-size:9px;}
.bupiz-p9c-checkout-content .bupiz-checkout-address-msg{min-height:0;margin:7px 2px 0;color:#667085;font-size:9px;}
.bupiz-p9c-checkout-content .bupiz-checkout-address-msg.success{color:#07845d;}
.bupiz-p9c-checkout-content .bupiz-checkout-address-msg.error{color:#b42318;}

/* Add/edit address stays in the same screen, opened only when needed. */
.bupiz-p9c-checkout-content .woocommerce-billing-fields__field-wrapper{padding:14px;border:1px solid #e4e8ef;border-radius:13px;background:#fafbfc;}
.bupiz-p9c-checkout-content #customer_details.has-saved-addresses:not(.is-address-editing) .woocommerce-billing-fields__field-wrapper,
.bupiz-p9c-checkout-content #customer_details.has-saved-addresses:not(.is-address-editing) .bupiz-p9c-address-editor-actions{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;}
.bupiz-p9c-address-editor-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:8px;margin:10px 0 0;}
.bupiz-p9c-address-editor-actions .button{width:100%!important;min-height:42px!important;margin:0!important;border-radius:10px!important;}
.bupiz-p9c-address-editor-cancel{border:1px solid #cdb1eb!important;background:#f4edff!important;color:#5e22a4!important;}
.bupiz-p9c-checkout-content #bupiz-save-checkout-address-btn{border:1px solid var(--bupiz-p9c-orange)!important;background:var(--bupiz-p9c-orange)!important;color:#fff!important;}

/* Fields become compact, app-like blocks. */
.bupiz-p9c-checkout-content .woocommerce-billing-fields__field-wrapper{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 10px;}
.bupiz-p9c-checkout-content .form-row{margin:0!important;}
.bupiz-p9c-checkout-content .form-row label{margin-bottom:4px!important;color:#344054;font-size:9px;font-weight:850;}
.bupiz-p9c-checkout-content .input-text,.bupiz-p9c-checkout-content select,.bupiz-p9c-checkout-content .select2-container .select2-selection--single{min-height:42px!important;border-radius:9px!important;background:#fff!important;font-size:11px!important;}

/* Order summary and product rows */
.bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table{margin-bottom:12px!important;}
.bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table th,
.bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table td{padding:9px 0!important;font-size:10.5px;}
.bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table thead{display:none;}
.bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .order-total th,
.bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .order-total td{font-size:14px;}

/* Payment: one uncluttered list, gateway content untouched. */
.bupiz-p9c-checkout-content #payment{margin-top:8px;border:1px solid #e4e8ef!important;border-radius:12px!important;background:#fff!important;overflow:hidden;}
.bupiz-p9c-checkout-content #payment ul.payment_methods li{padding:13px 12px!important;background:#fff;}
.bupiz-p9c-checkout-content #payment ul.payment_methods label{font-size:11px;font-weight:850;}
.bupiz-p9c-checkout-content #payment div.payment_box{border:1px solid #edf0f4!important;background:#fafbfc!important;font-size:9.5px;}
.bupiz-p9c-checkout-content #payment .place-order{padding:12px!important;border-top:1px solid #edf0f4;background:#fff;}
.bupiz-p9c-checkout-content #place_order{min-height:48px!important;border-radius:10px!important;background:linear-gradient(135deg,#6c2db2,#5e22a4)!important;box-shadow:none!important;font-size:13px!important;font-weight:800!important;}

}

/* Success */
.bupiz-p9c-checkout-content--success{padding-top:28px;padding-bottom:38px;}
.bupiz-p9c-success{max-width:610px;margin:0 auto 22px;padding:28px;border:1px solid #e4e8ef;border-radius:20px;background:#fff;text-align:center;box-shadow:0 16px 46px rgba(18,33,58,.08);}
.bupiz-p9c-success__check{width:62px;height:62px;display:grid;place-items:center;margin:0 auto 14px;}
.bupiz-p9c-success__check svg{width:62px;height:62px;}
.bupiz-p9c-success__check circle{fill:#ecfdf3;stroke:#12a66a;stroke-width:2;}
.bupiz-p9c-success__check path{fill:none;stroke:#12a66a;stroke-linecap:round;stroke-linejoin:round;stroke-width:3;}
.bupiz-p9c-success h1{margin:4px 0 7px;color:#172033;font-size:28px;line-height:1.1;}
.bupiz-p9c-success>p{max-width:470px;margin:0 auto;color:#667085;font-size:12px;line-height:1.6;}
.bupiz-p9c-success__reward{display:flex;align-items:center;justify-content:center;gap:10px;margin:17px 0 0;padding:12px;border:1px solid #ffd0e4;border-radius:12px;background:#fff4f9;text-align:left;}
.bupiz-p9c-success__reward>span{font-size:24px;}
.bupiz-p9c-success__reward small,.bupiz-p9c-success__reward strong{display:block;}
.bupiz-p9c-success__reward small{color:#a02960;font-size:9px;font-weight:850;}
.bupiz-p9c-success__reward strong{margin-top:2px;color:#172033;font-size:13px;}
.bupiz-p9c-success__facts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0 0;}
.bupiz-p9c-success__facts div{padding:10px;border:1px solid #edf0f4;border-radius:10px;background:#fafbfc;text-align:left;}
.bupiz-p9c-success__facts dt{color:#98a2b3;font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.05em;}
.bupiz-p9c-success__facts dd{margin:3px 0 0;color:#172033;font-size:11px;font-weight:900;}
.bupiz-p9c-success__actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px;}
.bupiz-p9c-success__actions .button{min-height:44px!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important;border-radius:10px!important;font-size:11px!important;font-weight:900!important;}
.bupiz-p9c-success__primary{border-color:var(--bupiz-p9c-orange)!important;background:var(--bupiz-p9c-orange)!important;color:#fff!important;}
.bupiz-p9c-success__secondary{border-color:#d8dee7!important;background:#fff!important;color:#172033!important;}
.bupiz-native-order-received .bupiz-p9c-checkout-content .woocommerce-thankyou-order-received{display:none!important;}
.bupiz-native-order-received .bupiz-p9c-checkout-content .woocommerce-order{max-width:920px;}

/* Cashback congratulation popup only appears when the existing Wallet/order data exposes a positive amount. */
body.bupiz-p9c-modal-open{overflow:hidden;}
.bupiz-p9c-cashback-modal{position:fixed;inset:0;z-index:100050;display:grid;place-items:center;padding:18px;}
.bupiz-p9c-cashback-modal[hidden]{display:none!important;}
.bupiz-p9c-cashback-modal__backdrop{position:absolute;inset:0;border:0;background:rgba(15,23,42,.55);}
.bupiz-p9c-cashback-modal__card{position:relative;z-index:1;width:min(100%,360px);padding:26px 22px 22px;border-radius:20px;background:#fff;text-align:center;box-shadow:0 28px 80px rgba(15,23,42,.28);}
.bupiz-p9c-cashback-modal__close{position:absolute;top:9px;right:11px;width:34px;height:34px;border:0;background:transparent;color:#667085;font-size:26px;cursor:pointer;}
.bupiz-p9c-cashback-modal__icon{display:block;font-size:38px;}
.bupiz-p9c-cashback-modal__card>small{display:block;margin-top:5px;color:#98a2b3;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.08em;}
.bupiz-p9c-cashback-modal__card h2{margin:4px 0 6px;color:#172033;font-size:24px;}
.bupiz-p9c-cashback-modal__card p{margin:0 0 16px;color:#667085;font-size:12px;line-height:1.55;}
.bupiz-p9c-cashback-modal__card .button{width:100%;min-height:44px;border:0!important;border-radius:10px!important;background:var(--bupiz-p9c-orange)!important;color:#fff!important;font-weight:900!important;}

@media (max-width:980px){
    .bupiz-p9c-hero__inner{grid-template-columns:1fr;gap:14px;}
    .bupiz-p9c-progress{max-width:none;}
    .bupiz-p9c-cart-content > .woocommerce{display:block;}
    .bupiz-p9c-cart-content .cart-collaterals{margin-top:14px!important;}
    .bupiz-p9c-checkout-content form.checkout.woocommerce-checkout{display:block!important;}
    .bupiz-p9c-order-summary-column{position:static;margin-top:14px;}
    .bupiz-p9c-checkout-content #order_review_heading{margin-top:0!important;}
}

@media (max-width:767px){
    body.bupiz-native-commerce{background:#f6f6f7!important;}
    .bupiz-p9c-container{width:100%;}
    .bupiz-p9c-commerce{padding-bottom:calc(146px + env(safe-area-inset-bottom));}
    .bupiz-p9c-hero{padding:13px 15px;background:#fff;}
    .bupiz-p9c-hero__inner{display:grid;grid-template-columns:minmax(0,1fr) 116px;gap:8px;align-items:center;}
    .bupiz-p9c-hero__copy .bupiz-p9c-eyebrow{display:none;}
    .bupiz-p9c-hero__copy h1{font-size:19px;letter-spacing:-.02em;}
    .bupiz-p9c-hero__copy p{display:none;}
    .bupiz-p9c-progress{display:flex;justify-content:flex-end;}
    .bupiz-p9c-progress__step{display:none;}
    .bupiz-p9c-progress__step.is-active{display:flex;padding:0;gap:7px;}
    .bupiz-p9c-progress__step.is-active .bupiz-p9c-progress__number{display:inline-flex;width:auto;height:auto;flex-basis:auto;border:0;background:transparent;color:#667085;box-shadow:none;font-size:10px;font-weight:800;}
    .bupiz-p9c-progress__step.is-active .bupiz-p9c-progress__number::before{content:"Step ";font-weight:600;}
    .bupiz-p9c-progress__step.is-active .bupiz-p9c-progress__number::after{content:"/3";}
    .bupiz-p9c-progress__step.is-active .bupiz-p9c-progress__copy{display:block;order:-1;}
    .bupiz-p9c-progress__step.is-active .bupiz-p9c-progress__copy strong{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;}
    .bupiz-p9c-progress__step.is-active .bupiz-p9c-progress__copy small{display:none;}
    .bupiz-p9c-delivery-wrap{padding-top:0;}
    .bupiz-p9c-delivery-preview{min-height:70px;padding:11px 15px;border-width:0 0 1px;border-radius:0;}
    .bupiz-p9c-delivery-preview__copy small{max-width:calc(100vw - 125px);}
    .bupiz-p9c-content{padding:12px 0 0;}
    .bupiz-p9c-selection-bar{margin:0 0 10px;padding:12px 15px;border-width:1px 0;border-radius:0;}

    .bupiz-p9c-cart-content .woocommerce-cart-form{padding:0;border-width:1px 0;border-radius:0;box-shadow:none;}
    .bupiz-p9c-cart-content table.shop_table tr.cart_item{grid-template-columns:118px minmax(0,1fr);gap:0 12px;padding:14px 15px 16px;background:#fff;}
    .bupiz-p9c-cart-content table.shop_table td.product-thumbnail{display:block!important;visibility:visible!important;opacity:1!important;width:118px!important;}
    .bupiz-p9c-cart-content table.shop_table td.product-thumbnail a{display:block!important;}
    .bupiz-p9c-cart-content table.shop_table td.product-thumbnail img{display:block!important;visibility:visible!important;opacity:1!important;width:112px!important;height:146px!important;border-radius:8px!important;object-fit:cover!important;}
    .bupiz-p9c-cart-content .product-name{padding-right:30px!important;}
    .bupiz-p9c-cart-content .product-name a{font-size:13px;line-height:1.35;}
    .bupiz-p9c-cart-content .variation{font-size:10px;}
    .bupiz-p9c-cart-content .product-price{font-size:13px;font-weight:900;}
    .bupiz-p9c-cart-content .product-quantity{margin-top:4px;}
    .bupiz-p9c-cart-content .quantity{grid-template-columns:30px 40px 30px;border-radius:7px;}
    .bupiz-p9c-cart-content .quantity input.qty{width:40px!important;min-width:40px!important;height:34px!important;}
    .bupiz-p9c-qty-button{width:30px;height:34px;font-size:16px;}
    .bupiz-p9c-cart-content a.remove{width:26px!important;height:26px!important;border:0;background:transparent!important;font-size:22px!important;}
    .bupiz-p9c-cart-content td.actions{padding:0 15px 14px!important;background:#fff;}
    .bupiz-p9c-coupon-toggle{margin:0;border-radius:9px;}
    .bupiz-p9c-cart-content .bupiz-p9c-coupon-panel.is-open{display:grid!important;grid-template-columns:1fr auto;margin-top:8px;}
    .bupiz-p9c-cart-content .cart-collaterals{margin-top:10px!important;}
    .bupiz-p9c-cart-content .cart_totals{padding:15px;border-width:1px 0;border-radius:0;box-shadow:none;}
    .bupiz-p9c-cart-content .cart_totals h2{font-size:14px!important;text-transform:uppercase;letter-spacing:.03em;}
    .bupiz-p9c-cart-content .wc-proceed-to-checkout{position:fixed;left:0;right:0;bottom:calc(var(--bupiz-mobile-nav-h,64px) + env(safe-area-inset-bottom));z-index:99995;padding:10px 14px!important;border-top:1px solid #e4e8ef;background:#fff;box-shadow:0 -8px 24px rgba(42,25,57,.09);}
    .bupiz-p9c-cart-content .checkout-button{min-height:52px!important;border:1px solid #5e22a4!important;border-radius:9px!important;background:#5e22a4!important;color:#fff!important;box-shadow:none!important;font-size:14px!important;font-weight:800!important;text-transform:none;letter-spacing:0;}
    .bupiz-p9c-trust{display:none;}

    /* Checkout behaves like a mobile shopping flow without changing WooCommerce submission. */
    .bupiz-p9c-checkout-content{padding-top:10px;}
    .bupiz-p9c-checkout-content form.checkout.woocommerce-checkout{display:block!important;}
    .bupiz-p9c-checkout-content #customer_details{padding:0;border-width:1px 0;border-radius:0;box-shadow:none;background:#fff;}
    .bupiz-p9c-section-intro{padding:14px 15px 8px;margin:0;}
    .bupiz-p9c-section-intro>span{display:none;}
    .bupiz-p9c-section-intro h2{font-size:15px!important;}
    .bupiz-p9c-section-intro p{font-size:9.5px;}
    .bupiz-p9c-checkout-content .bupiz-saved-address-box{margin:0!important;padding:0 15px 13px!important;}
    .bupiz-p9c-address-book{border-radius:11px;}
    .bupiz-p9c-address-book__head{padding:11px;}
    .bupiz-p9c-address-book__head strong{font-size:11px;}
    .bupiz-p9c-address-book__add{padding:7px 8px;font-size:8px;}
    .bupiz-p9c-address-choice{grid-template-columns:18px minmax(0,1fr) auto;padding:12px 10px;}
    .bupiz-p9c-address-choice__name strong{font-size:11px;}
    .bupiz-p9c-address-choice__copy small{font-size:9px;}
    .bupiz-p9c-address-choice__use{font-size:8px;}
    .bupiz-p9c-checkout-content .woocommerce-billing-fields__field-wrapper{grid-template-columns:1fr;gap:10px;margin:0 15px 12px;padding:13px;border-radius:11px;background:#fff;}
    .bupiz-p9c-checkout-content .form-row-wide,.bupiz-p9c-checkout-content #billing_address_1_field,.bupiz-p9c-checkout-content #billing_address_2_field,.bupiz-p9c-checkout-content #billing_email_field{grid-column:1;}
    .bupiz-p9c-address-editor-actions{margin:0 15px 13px;}

    .bupiz-p9c-order-summary-column{margin-top:10px;}
    .bupiz-p9c-checkout-content #order_review_heading{padding:14px 15px 8px;border-width:1px 0 0;border-radius:0;font-size:15px!important;}
    .bupiz-p9c-checkout-content #order_review{padding:0 15px 15px;border-width:0 0 1px;border-radius:0;box-shadow:none;}
    .bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table th,.bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table td{font-size:10px;}
    .bupiz-p9c-checkout-content .bupiz-p9c-payment-intro{margin:10px -15px 0;padding:13px 15px 8px;border-top:10px solid #f6f6f7;}
    .bupiz-p9c-payment-intro>span{display:none;}
    .bupiz-p9c-payment-intro h3{font-size:15px!important;}
    .bupiz-p9c-checkout-content #payment{margin:0 -15px -15px;border-width:0!important;border-radius:0!important;}
    .bupiz-p9c-checkout-content #payment ul.payment_methods li{padding:15px!important;border-top:1px solid #edf0f4;border-bottom:0;}
    .bupiz-p9c-checkout-content #payment ul.payment_methods label{font-size:12px;}
    .bupiz-p9c-checkout-content #payment .place-order{padding:12px 15px!important;}
    body.bupiz-p9c-payment-active .bupiz-p9c-checkout-content #payment .place-order{position:fixed;left:0;right:0;bottom:calc(var(--bupiz-mobile-nav-h,64px) + env(safe-area-inset-bottom));z-index:99995;padding:10px 14px!important;border-top:1px solid #e4e8ef;background:#fff;box-shadow:0 -8px 24px rgba(42,25,57,.09);}
    body.bupiz-p9c-payment-active .bupiz-p9c-checkout-content #place_order{min-height:52px!important;border:1px solid #5e22a4!important;border-radius:9px!important;background:#5e22a4!important;color:#fff!important;box-shadow:none!important;text-transform:none!important;letter-spacing:0!important;}

    /* Order success */
    .bupiz-p9c-checkout-content--success{padding:18px 12px 30px;}
    .bupiz-p9c-success{margin-bottom:14px;padding:23px 16px;border-radius:16px;box-shadow:none;}
    .bupiz-p9c-success__check,.bupiz-p9c-success__check svg{width:54px;height:54px;}
    .bupiz-p9c-success h1{font-size:23px;}
    .bupiz-p9c-success>p{font-size:10.5px;}
    .bupiz-p9c-success__facts{grid-template-columns:1fr;}
    .bupiz-p9c-success__actions{grid-template-columns:1fr;}
    .bupiz-p9c-checkout-content--success .woocommerce-order-overview{grid-template-columns:1fr 1fr;gap:7px;}
    .bupiz-p9c-checkout-content--success .woocommerce-order-details,.bupiz-p9c-checkout-content--success .woocommerce-customer-details{padding:15px;border-radius:13px;box-shadow:none;}
}

@media (max-width:420px){
    .bupiz-p9c-cart-content table.shop_table tr.cart_item{grid-template-columns:104px minmax(0,1fr);gap:0 10px;}
    .bupiz-p9c-cart-content table.shop_table td.product-thumbnail{display:block!important;visibility:visible!important;opacity:1!important;width:104px!important;}
    .bupiz-p9c-cart-content table.shop_table td.product-thumbnail img{display:block!important;visibility:visible!important;opacity:1!important;width:98px!important;height:132px!important;object-fit:cover!important;}
    .bupiz-p9c-address-choice{grid-template-columns:17px minmax(0,1fr);}
    .bupiz-p9c-address-choice__use{grid-column:2;justify-self:start;margin-top:2px;}
}


/* ============================================================
   Phase 9C.3 — Checkout visibility + compact readability refinement
   Presentation only. No checkout/cart/order business rules changed.
============================================================ */

/* Logged-in checkout: never flash or permanently expose raw address rows.
   The saved-address controller adds .is-address-editing only for Add/Edit,
   or when there is genuinely no saved address. */
body.bupiz-p9c-address-managed .bupiz-p9c-checkout-content #customer_details:not(.is-address-editing) .woocommerce-billing-fields__field-wrapper,
body.bupiz-p9c-address-managed .bupiz-p9c-checkout-content #customer_details:not(.is-address-editing) .bupiz-p9c-address-editor-actions{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    overflow:hidden!important;
    clip:rect(0 0 0 0)!important;
    clip-path:inset(50%)!important;
    white-space:nowrap!important;
}
body.bupiz-p9c-address-managed .bupiz-p9c-checkout-content #customer_details.is-address-editing .woocommerce-billing-fields__field-wrapper,
body.bupiz-p9c-address-managed .bupiz-p9c-checkout-content #customer_details.is-address-editing .bupiz-p9c-address-editor-actions{
    position:static!important;
    width:auto!important;
    height:auto!important;
    overflow:visible!important;
    clip:auto!important;
    clip-path:none!important;
    white-space:normal!important;
}

/* Readability: slightly larger type with tighter card chrome so more useful
   content fits above the fold without looking compressed. */
.bupiz-p9c-address-book__head{padding:10px 12px;}
.bupiz-p9c-address-book__head small{font-size:9px;}
.bupiz-p9c-address-book__head strong{font-size:13px;}
.bupiz-p9c-address-book__add{padding:7px 10px;font-size:9.5px;}
.bupiz-p9c-address-choice{padding:10px 11px;gap:8px;}
.bupiz-p9c-address-choice__name strong{font-size:12px;}
.bupiz-p9c-address-choice__name em{font-size:7.5px;}
.bupiz-p9c-address-choice__copy small{font-size:10px;line-height:1.4;}
.bupiz-p9c-address-choice__use{font-size:9.5px;}
.bupiz-p9c-checkout-content .bupiz-checkout-address-msg{font-size:10px;}
.bupiz-p9c-checkout-content .woocommerce-billing-fields__field-wrapper{padding:12px;gap:8px 10px;}
.bupiz-p9c-checkout-content .form-row label{font-size:10px;}
.bupiz-p9c-checkout-content .input-text,
.bupiz-p9c-checkout-content select,
.bupiz-p9c-checkout-content .select2-container .select2-selection--single{min-height:40px!important;padding:8px 10px!important;font-size:12px!important;}
.bupiz-p9c-address-editor-actions{margin-top:8px;}
.bupiz-p9c-address-editor-actions .button{min-height:40px!important;font-size:11px!important;}
.bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table th,
.bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table td{padding:8px 0!important;font-size:11.5px;line-height:1.4;}
.bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .order-total th,
.bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table .order-total td{font-size:15px;}
.bupiz-p9c-checkout-content #payment ul.payment_methods li{padding:11px 12px!important;}
.bupiz-p9c-checkout-content #payment ul.payment_methods label{font-size:12px;}
.bupiz-p9c-checkout-content #payment div.payment_box{padding:10px!important;font-size:10.5px;line-height:1.45;}
.bupiz-p9c-checkout-content #payment .place-order{padding:10px 12px!important;}

/* Success card: one clean confirmation surface; smaller footprint, clearer type. */
.bupiz-p9c-checkout-content--success{padding-top:20px;padding-bottom:28px;}
.bupiz-p9c-success{max-width:620px;margin-bottom:16px;padding:22px 24px;border-radius:18px;box-shadow:0 10px 32px rgba(18,33,58,.06);}
.bupiz-p9c-success__check,.bupiz-p9c-success__check svg{width:54px;height:54px;}
.bupiz-p9c-success__check{margin-bottom:10px;}
.bupiz-p9c-success h1{font-size:25px;}
.bupiz-p9c-success>p{font-size:12.5px;line-height:1.5;}
.bupiz-p9c-success__facts{margin-top:12px;}
.bupiz-p9c-success__facts div{padding:9px 10px;}
.bupiz-p9c-success__facts dt{font-size:8.5px;}
.bupiz-p9c-success__facts dd{font-size:12px;}
.bupiz-p9c-success__actions{margin-top:12px;}
.bupiz-p9c-success__actions .button{min-height:42px!important;font-size:11.5px!important;}

@media (max-width:767px){
    .bupiz-p9c-checkout-content #customer_details{padding-bottom:0;}
    .bupiz-p9c-section-intro{padding:12px 15px 6px;}
    .bupiz-p9c-section-intro h2{font-size:16px!important;}
    .bupiz-p9c-section-intro p{font-size:10.5px;line-height:1.4;}
    .bupiz-p9c-checkout-content .bupiz-saved-address-box{padding:0 12px 10px!important;}
    .bupiz-p9c-address-book__head{padding:10px;}
    .bupiz-p9c-address-book__head strong{font-size:12.5px;}
    .bupiz-p9c-address-book__add{font-size:9px;}
    .bupiz-p9c-address-choice{grid-template-columns:18px minmax(0,1fr) auto;padding:10px 9px;}
    .bupiz-p9c-address-choice__name strong{font-size:12px;}
    .bupiz-p9c-address-choice__copy small{font-size:10px;}
    .bupiz-p9c-address-choice__use{font-size:9px;}
    .bupiz-p9c-checkout-content .woocommerce-billing-fields__field-wrapper{margin:0 12px 10px;padding:11px;gap:8px;}
    .bupiz-p9c-checkout-content .form-row label{font-size:10px;}
    .bupiz-p9c-checkout-content .input-text,
    .bupiz-p9c-checkout-content select,
    .bupiz-p9c-checkout-content .select2-container .select2-selection--single{min-height:42px!important;font-size:12px!important;}
    .bupiz-p9c-address-editor-actions{margin:0 12px 10px;}
    .bupiz-p9c-checkout-content #order_review_heading{padding:12px 12px 6px;font-size:16px!important;}
    .bupiz-p9c-checkout-content #order_review{padding:0 12px 12px;}
    .bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table th,
    .bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table td{font-size:11px;}
    .bupiz-p9c-checkout-content .bupiz-p9c-payment-intro{margin:8px -12px 0;padding:12px 12px 6px;}
    .bupiz-p9c-payment-intro h3{font-size:16px!important;}
    .bupiz-p9c-checkout-content #payment{margin:0 -12px -12px;}
    .bupiz-p9c-checkout-content #payment ul.payment_methods li{padding:12px!important;}
    .bupiz-p9c-checkout-content #payment ul.payment_methods label{font-size:12.5px;}
    .bupiz-p9c-checkout-content #payment .place-order{padding:10px 12px!important;}
    .bupiz-p9c-checkout-content--success{padding:12px 10px 24px;}
    .bupiz-p9c-success{padding:18px 14px;border-radius:15px;}
    .bupiz-p9c-success__check,.bupiz-p9c-success__check svg{width:48px;height:48px;}
    .bupiz-p9c-success h1{font-size:22px;}
    .bupiz-p9c-success>p{font-size:11.5px;}
    .bupiz-p9c-success__facts{grid-template-columns:1fr 1fr;gap:7px;}
    .bupiz-p9c-success__facts div{padding:8px;}
    .bupiz-p9c-success__actions{grid-template-columns:1fr 1fr;gap:7px;}
    .bupiz-p9c-success__actions .button{min-height:40px!important;font-size:10.5px!important;}
}

@media (max-width:420px){
    .bupiz-p9c-success__facts,.bupiz-p9c-success__actions{grid-template-columns:1fr;}
}

/* ============================================================
   Phase 13K — spacing-only commerce refinement
   Tightens empty chrome only; checkout/cart logic and controls are untouched.
============================================================ */
.bupiz-p9c-commerce{padding-bottom:30px;}
.bupiz-p9c-hero{padding:16px 0 14px;}
.bupiz-p9c-hero__inner{gap:26px;}
.bupiz-p9c-content{padding-top:16px;}
.bupiz-p9c-cart-content > .woocommerce{gap:16px;}
.bupiz-p9c-cart-content .woocommerce-cart-form{padding:12px;}
.bupiz-p9c-cart-content table.shop_table tbody td{padding:12px 9px!important;}
.bupiz-p9c-cart-content td.actions{padding-top:12px!important;}
.bupiz-p9c-cart-content .cart_totals{padding:17px;}
.bupiz-p9c-cart-content .cart_totals h2{margin-bottom:11px!important;}
.bupiz-p9c-cart-content .cart_totals table{margin-bottom:11px!important;}
.bupiz-p9c-cart-content .cart_totals th,.bupiz-p9c-cart-content .cart_totals td{padding:9px 0!important;}
.bupiz-p9c-checkout-content form.checkout.woocommerce-checkout{gap:0 20px;}
.bupiz-p9c-checkout-content #customer_details{padding:18px;}
.bupiz-p9c-checkout-content #customer_details .col-2{margin-top:12px;}
.bupiz-p9c-checkout-content #order_review_heading{padding:16px 17px 8px;}
.bupiz-p9c-checkout-content #order_review{padding:0 17px 17px;}
.bupiz-p9c-section-intro,.bupiz-p9c-payment-intro{gap:9px;margin-bottom:12px;}
.bupiz-p9c-checkout-content .bupiz-saved-address-box,
.bupiz-p9c-checkout-content .bupiz-checkout-address-card{margin-bottom:12px!important;padding:12px!important;}
.bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table{margin-bottom:10px!important;}
.bupiz-p9c-checkout-content #payment ul.payment_methods li{padding:10px 11px!important;}
.bupiz-p9c-checkout-content #payment div.payment_box{margin-top:7px!important;padding:9px!important;}
.bupiz-p9c-checkout-content #payment .place-order{padding-top:10px!important;}
.bupiz-p9c-checkout-content .bupiz-wallet-checkout-box{margin-bottom:10px!important;padding:11px!important;}
.bupiz-p9c-trust{gap:9px;margin-top:16px;}
.bupiz-p9c-trust__item{gap:8px;padding:11px;}
.bupiz-p9c-saved-bag{margin-bottom:12px;}
.bupiz-p9c-saved-bag__summary{min-height:64px;gap:11px;padding:9px 12px;}
.bupiz-p9c-saved-bag__panel{padding:0 12px 11px;}
.bupiz-p9c-saved-bag__panel-head{padding:10px 2px 7px;}
.bupiz-p9c-success{margin-bottom:12px;padding:18px 20px;}
.bupiz-p9c-success__check{margin-bottom:8px;}
.bupiz-p9c-success__facts{margin-top:10px;}
.bupiz-p9c-success__actions{margin-top:10px;}
@media (max-width:980px){
    .bupiz-p9c-cart-content .cart-collaterals{margin-top:10px!important;}
    .bupiz-p9c-order-summary-column{margin-top:10px;}
}
@media (max-width:767px){
    .bupiz-p9c-commerce{padding-bottom:82px;}
    .bupiz-p9c-hero{padding:10px 13px;}
    .bupiz-p9c-content{padding-top:8px;}
    .bupiz-p9c-selection-bar{margin-bottom:7px;padding:9px 13px;}
    .bupiz-p9c-cart-content table.shop_table tr.cart_item{padding:11px 13px 12px;gap:0 10px;}
    .bupiz-p9c-cart-content td.actions{padding:0 13px 10px!important;}
    .bupiz-p9c-cart-content .cart-collaterals{margin-top:7px!important;}
    .bupiz-p9c-cart-content .cart_totals{padding:12px 13px;}
    .bupiz-p9c-checkout-content{padding-top:6px;}
    .bupiz-p9c-section-intro{padding:9px 12px 5px;}
    .bupiz-p9c-checkout-content .bupiz-saved-address-box{padding:0 10px 8px!important;}
    .bupiz-p9c-checkout-content .woocommerce-billing-fields__field-wrapper{margin:0 10px 8px;padding:9px;gap:7px;}
    .bupiz-p9c-address-editor-actions{margin:0 10px 8px;}
    .bupiz-p9c-order-summary-column{margin-top:7px;}
    .bupiz-p9c-checkout-content #order_review_heading{padding:9px 10px 5px;}
    .bupiz-p9c-checkout-content #order_review{padding:0 10px 10px;}
    .bupiz-p9c-checkout-content .bupiz-p9c-payment-intro{margin:6px -10px 0;padding:9px 10px 5px;}
    .bupiz-p9c-checkout-content #payment{margin:0 -10px -10px;}
    .bupiz-p9c-checkout-content #payment ul.payment_methods li{padding:10px 12px!important;}
    .bupiz-p9c-checkout-content #payment .place-order{padding:9px 10px!important;}
    .bupiz-p9c-checkout-content--success{padding:9px 9px 20px;}
    .bupiz-p9c-success{padding:16px 13px;}
    .bupiz-p9c-saved-bag{margin-bottom:9px;}
    .bupiz-p9c-saved-bag__summary{min-height:60px;padding:8px 9px;}
}

/* ============================================================
   Phase 13K-R2 — checkout conditional space cleanup
   Spacing only. Address/payment/cart/order logic and controls are untouched.
============================================================ */
/* WooCommerce can print the secondary/additional-information column even when
   it contains no fields. Collapse only genuinely empty containers. */
.bupiz-p9c-checkout-content #customer_details .col-2:not(:has(.form-row)),
.bupiz-p9c-checkout-content .woocommerce-additional-fields:not(:has(.form-row)),
.bupiz-p9c-checkout-content .woocommerce-additional-fields__field-wrapper:empty{
    display:none !important;
    height:0 !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    overflow:hidden !important;
}
/* Empty WooCommerce notices/field wrappers should never create visual rows. */
.bupiz-p9c-checkout-content .woocommerce-shipping-fields__field-wrapper:empty,
.bupiz-p9c-checkout-content .woocommerce-billing-fields__field-wrapper:empty,
.bupiz-p9c-checkout-content .bupiz-checkout-address-msg:empty{
    display:none !important;
    height:0 !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
}
/* Desktop/tablet: same approved layout, tighter vertical rhythm. */
.bupiz-p9c-checkout-content #customer_details{
    padding-top:14px !important;
    padding-bottom:14px !important;
}
.bupiz-p9c-checkout-content #customer_details .col-2{
    margin-top:8px !important;
}
.bupiz-p9c-section-intro,
.bupiz-p9c-payment-intro{
    margin-bottom:8px !important;
}
.bupiz-p9c-checkout-content .bupiz-saved-address-box,
.bupiz-p9c-checkout-content .bupiz-checkout-address-card{
    margin-bottom:8px !important;
}
.bupiz-p9c-checkout-content .bupiz-checkout-address-msg{
    margin-top:4px !important;
}
.bupiz-p9c-checkout-content #order_review_heading{
    padding-top:12px !important;
    padding-bottom:6px !important;
}
.bupiz-p9c-checkout-content #order_review{
    padding-bottom:13px !important;
}
.bupiz-p9c-checkout-content table.woocommerce-checkout-review-order-table{
    margin-bottom:6px !important;
}
.bupiz-p9c-checkout-content .bupiz-wallet-checkout-box{
    margin-bottom:7px !important;
}
.bupiz-p9c-checkout-content #payment ul.payment_methods li{
    padding-top:9px !important;
    padding-bottom:9px !important;
}
.bupiz-p9c-checkout-content #payment div.payment_box{
    margin-top:5px !important;
    margin-bottom:2px !important;
}
.bupiz-p9c-checkout-content #payment .place-order{
    padding-top:8px !important;
    padding-bottom:8px !important;
}
.bupiz-p9c-trust{
    margin-top:10px !important;
}
/* Avoid a blank hand-off strip between address and the sticky order summary. */
.bupiz-p9c-order-summary-column{
    margin-bottom:0 !important;
}

@media (max-width:980px){
    .bupiz-p9c-order-summary-column{
        margin-top:6px !important;
    }
}

@media (max-width:767px){
    .bupiz-p9c-checkout-content{
        padding-top:4px !important;
    }
    .bupiz-p9c-section-intro{
        padding-top:7px !important;
        padding-bottom:3px !important;
    }
    .bupiz-p9c-checkout-content .bupiz-saved-address-box{
        padding-bottom:6px !important;
    }
    .bupiz-p9c-checkout-content .woocommerce-billing-fields__field-wrapper{
        margin-bottom:6px !important;
    }
    .bupiz-p9c-address-editor-actions{
        margin-bottom:6px !important;
    }
    .bupiz-p9c-order-summary-column{
        margin-top:4px !important;
    }
    .bupiz-p9c-checkout-content #order_review_heading{
        padding-top:7px !important;
        padding-bottom:3px !important;
    }
    .bupiz-p9c-checkout-content #order_review{
        padding-bottom:8px !important;
    }
    .bupiz-p9c-checkout-content .bupiz-p9c-payment-intro{
        margin-top:4px !important;
        padding-top:7px !important;
        padding-bottom:3px !important;
    }
    .bupiz-p9c-checkout-content #payment ul.payment_methods li{
        padding-top:8px !important;
        padding-bottom:8px !important;
    }
    .bupiz-p9c-checkout-content #payment .place-order{
        padding-top:7px !important;
        padding-bottom:7px !important;
    }
}
