/* KIPDOT v1.2 | cart drawer + WooCommerce Classic/Blocks transactional screens. */
body.kipdot-cart-open{overflow:hidden}
.kipdot-cart-layer{position:fixed;inset:0;z-index:9999;display:flex;justify-content:flex-end}
.kipdot-cart-backdrop{position:absolute;inset:0;background:rgba(10,16,30,.66);border:0;cursor:default}
.kipdot-cart-drawer{position:relative;z-index:1;background:var(--surface);color:var(--ink);height:100%;width:min(440px,100vw);box-shadow:-22px 0 50px rgba(10,19,35,.22);display:flex;flex-direction:column;min-width:0;outline:none;animation:kipdot-slide-in .2s ease-out}
@keyframes kipdot-slide-in{from{transform:translateX(24px);opacity:.7}to{transform:translateX(0);opacity:1}}
.kipdot-drawer-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:27px 25px 21px;border-bottom:1px solid var(--line)}
.kipdot-drawer-eyebrow{font-size:10px;letter-spacing:.13em;font-weight:900;color:var(--brand-link)}
.kipdot-drawer-heading h2{font-size:26px;line-height:1.1;margin:7px 0 0}
.kipdot-drawer-heading h2 span{color:var(--muted);font-size:17px}
.kipdot-drawer-close,.kipdot-drawer-remove{background:none;color:var(--ink);border:1px solid var(--line);display:grid;place-items:center;border-radius:50%;flex:none}
.kipdot-drawer-close{width:36px;height:36px;font-size:27px;line-height:1}
.kipdot-drawer-remove{width:27px;height:27px;font-size:23px}
.kipdot-drawer-close:hover,.kipdot-drawer-remove:hover{background:var(--surface-alt)}
.kipdot-drawer-items{padding:5px 24px 20px;flex:1;overflow:auto;min-height:0;overscroll-behavior:contain}
.kipdot-drawer-item{display:grid;grid-template-columns:94px minmax(0,1fr);gap:15px;border-bottom:1px solid var(--line);padding:22px 0}
.kipdot-drawer-image{width:94px;height:99px;background:var(--surface-alt);border-radius:12px;overflow:hidden}
.kipdot-drawer-image img{width:100%;height:100%;object-fit:cover;display:block}
.kipdot-drawer-item-info{min-width:0}
.kipdot-drawer-name{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;font-size:14px;font-weight:800;line-height:1.4;margin:0 0 6px}
.kipdot-drawer-name>a{min-width:0}
.kipdot-drawer-unit{font-size:12px;color:var(--muted);margin:0 0 10px}
.kipdot-drawer-meta{font-size:11px;color:var(--muted);margin:0 0 6px}
.kipdot-drawer-meta dl{display:flex;flex-wrap:wrap;gap:4px;margin:0}.kipdot-drawer-meta dt,.kipdot-drawer-meta dd{margin:0}.kipdot-drawer-meta dd p{margin:0}
.kipdot-drawer-item-bottom{display:flex;gap:8px;align-items:center;justify-content:space-between}
.kipdot-drawer-stepper{display:flex;border:1px solid var(--line);border-radius:10px;overflow:hidden;height:36px;align-items:center;background:var(--surface)}
.kipdot-drawer-stepper button{width:29px;min-width:29px;align-self:stretch;background:var(--surface-alt);color:var(--ink);border:0;font-size:18px;font-weight:700}
.kipdot-drawer-stepper button:disabled{opacity:.4;cursor:not-allowed}
.kipdot-drawer-stepper span{display:grid;place-items:center;padding:0 10px;min-width:35px;font-weight:800;font-size:12px}
.kipdot-drawer-line-total{font-size:14px;white-space:nowrap}
.kipdot-cart-spinner{margin:28px auto;color:var(--muted);font-size:13px;text-align:center}
.kipdot-drawer-empty{display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;padding:80px 10px 30px;gap:11px}
.kipdot-drawer-empty>span{font-size:54px;color:var(--brand-blue)}
.kipdot-drawer-empty h3{font-size:25px;margin:0}.kipdot-drawer-empty p{font-size:13px;color:var(--muted);margin:0 0 8px}
.kipdot-drawer-footer{padding:20px 24px 24px;border-top:1px solid var(--line);margin-top:auto;background:var(--surface)}
.kipdot-drawer-footer:empty{display:none}
.kipdot-drawer-total{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:15px;font-weight:800}
.kipdot-drawer-total strong{font-size:19px}
.kipdot-drawer-tax-note{font-size:11px;color:var(--muted);margin:7px 0 18px}
.kipdot-drawer-view,.kipdot-drawer-checkout{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;min-height:45px;font-size:12px;font-weight:900;text-align:center;border-radius:40px;margin-top:9px;text-decoration:none}
.kipdot-drawer-view{background:var(--brand-blue);color:white}
.kipdot-drawer-checkout{background:var(--brand-lime);color:#151B2E}
.kipdot-drawer-view:hover{color:white;filter:brightness(1.06)}.kipdot-drawer-checkout:hover{color:#151B2E;filter:brightness(.98)}
.kipdot-drawer-error{color:#A5253D;background:#FFE2E8;padding:10px 14px;margin:12px 24px 0;font-size:12px;border-radius:9px}
.kipdot-cart-layer.is-updating .kipdot-drawer-stepper button{pointer-events:none;opacity:.45}
.kipdot-cart-retry{padding:24px 0;font-size:13px;color:var(--muted)}.kipdot-cart-retry a{color:var(--brand-link);text-decoration:underline}
/* Shared cart, checkout, account page background and form controls. */
.kipdot-transaction{padding-top:38px;padding-bottom:74px;max-width:1360px}
.kipdot-transaction .content-entry{max-width:none}
.kipdot-transaction .entry-content{line-height:1.5}
.kipdot-transaction .entry-content a:not(.button):not(.wp-element-button){text-decoration:none}
.kipdot-checkout-progress{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:15px;margin:0 0 45px;color:var(--muted);font-size:15px}
.kipdot-checkout-progress>span{display:flex;align-items:center;gap:8px}
.kipdot-checkout-progress b{width:24px;height:24px;border-radius:50%;display:inline-grid;place-items:center;background:var(--line);color:var(--ink);font-size:12px}
.kipdot-checkout-progress .is-current{color:var(--ink);font-weight:800}
.kipdot-checkout-progress .is-current b{background:var(--brand-lime);color:#151B2E}
.kipdot-checkout-progress .is-done b{background:var(--brand-blue);color:white}
.kipdot-transaction :is(input[type='text'],input[type='email'],input[type='tel'],input[type='password'],input[type='number'],textarea,select){background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:11px;padding:12px;min-height:45px;max-width:100%}
.kipdot-transaction :is(input,textarea,select):focus{outline:2px solid var(--brand-blue);outline-offset:1px}
.kipdot-transaction label{color:var(--ink)}
.kipdot-transaction .woocommerce .button,.kipdot-transaction .woocommerce button.button,.kipdot-transaction .woocommerce a.button{border-radius:40px!important;background:var(--brand-lime)!important;color:#151B2E!important;padding:14px 22px!important;font-weight:800!important;min-height:44px;box-shadow:none!important}
.kipdot-transaction .woocommerce .button.alt,.kipdot-transaction .woocommerce button.button.alt{background:var(--brand-blue)!important;color:#fff!important}
.kipdot-transaction .woocommerce-notices-wrapper :is(.woocommerce-error,.woocommerce-info,.woocommerce-message){color:var(--ink);background:var(--surface);border-top-color:var(--brand-blue);border-radius:10px}
.kipdot-transaction .woocommerce .woocommerce-cart-form{width:68%;float:left;margin-bottom:35px;padding-right:45px}
.kipdot-transaction .woocommerce .cart-collaterals{width:32%;float:right}
.kipdot-transaction .woocommerce .cart-collaterals .cart_totals{width:100%;float:none;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:22px}
.kipdot-transaction .woocommerce .cart-collaterals .cart_totals h2{font-size:22px;margin:0 0 14px}
.kipdot-transaction .woocommerce table.shop_table{border:0;border-collapse:collapse;font-size:13px;margin:0 0 18px}
.kipdot-transaction .woocommerce table.shop_table th{border-bottom:1px solid var(--line);font-weight:800;padding:14px 12px}
.kipdot-transaction .woocommerce table.shop_table td{border-bottom:1px solid var(--line);padding:15px 12px}
.kipdot-transaction .woocommerce table.shop_table td.product-thumbnail img{width:76px;border-radius:9px}
.kipdot-transaction .woocommerce table.shop_table td.product-name a{font-weight:750}
.kipdot-transaction .woocommerce :is(.quantity .qty,input.qty){width:76px;min-height:38px}
.kipdot-transaction .woocommerce .cart_totals .wc-proceed-to-checkout a.checkout-button{width:100%;font-size:14px}
.kipdot-transaction .woocommerce-cart-form .actions .coupon{display:flex;gap:9px;align-items:center}
.kipdot-transaction .woocommerce-cart-form .actions .coupon .input-text{width:160px!important;float:none!important}
/* Checkout: preserve real WooCommerce validation, shipping and gateway integrations. */
.kipdot-page-checkout .woocommerce .col2-set{width:64%;float:left;padding-right:37px}
.kipdot-page-checkout .woocommerce .col2-set .col-1,.kipdot-page-checkout .woocommerce .col2-set .col-2{width:100%;float:none}
.kipdot-page-checkout .woocommerce #order_review_heading{float:right;width:36%;margin:0 0 12px;font-size:23px}
.kipdot-page-checkout .woocommerce #order_review{width:36%;float:right;border:1px solid var(--line);background:var(--surface);padding:20px;border-radius:16px}
.kipdot-page-checkout .woocommerce .woocommerce-billing-fields h3,.kipdot-page-checkout .woocommerce .woocommerce-shipping-fields h3{font-size:23px;margin:0 0 16px}
.kipdot-page-checkout .woocommerce form .form-row{margin:0 0 15px}
.kipdot-page-checkout .woocommerce form .form-row label{font-size:13px;font-weight:700;margin:0 0 5px}
.kipdot-page-checkout .woocommerce form .form-row :is(.input-text,select){width:100%;line-height:1.4}
.kipdot-page-checkout .woocommerce #payment{background:var(--surface-alt);border-radius:10px;color:var(--ink)}
.kipdot-page-checkout .woocommerce #payment ul.payment_methods{border-bottom:1px solid var(--line)}
.kipdot-page-checkout .woocommerce #payment div.payment_box{background:var(--bg);color:var(--ink)}
.kipdot-page-checkout .woocommerce #payment div.payment_box:before{border-bottom-color:var(--bg)}
.kipdot-page-checkout .woocommerce #payment #place_order{width:100%;margin-top:12px}
.kipdot-page-checkout .select2-container--default .select2-selection--single{background:var(--surface);border:1px solid var(--line);border-radius:10px;min-height:45px;color:var(--ink)}
.kipdot-page-checkout .select2-container--default .select2-selection--single .select2-selection__rendered{color:var(--ink);line-height:43px}
/* WooCommerce Blocks cart/checkout (where sites use the newer block-based pages). */
.kipdot-transaction .wc-block-components-sidebar-layout{max-width:none;gap:24px}
.kipdot-transaction .wc-block-components-sidebar{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:20px!important}
.kipdot-transaction :is(.wc-block-components-text-input input,.wc-block-components-combobox-control input,.wc-block-components-form .wc-block-components-text-input input){color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:9px}
.kipdot-transaction .wc-block-components-button:not(.is-link){background:var(--brand-blue);color:white;border-radius:40px;font-weight:800;min-height:47px}
.kipdot-transaction :is(.wc-block-cart-item__image img,.wc-block-components-product-image img){border-radius:10px}
.kipdot-transaction :is(.wc-block-components-product-name,.wc-block-components-title){color:var(--ink);font-weight:800}
.kipdot-transaction :is(.wc-block-components-order-summary-item,.wc-block-cart-items__row){border-color:var(--line)}
.kipdot-transaction .wc-block-components-totals-wrapper{border-color:var(--line)}
/* My account — native WooCommerce navigation, account details and order history. */
.kipdot-page-account .page-heading{margin-bottom:27px}.kipdot-page-account .page-heading h1{font-size:47px}
.kipdot-page-account .woocommerce-MyAccount-navigation{width:24%;float:left;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:13px}
.kipdot-page-account .woocommerce-MyAccount-navigation ul{margin:0;padding:0;list-style:none}
.kipdot-page-account .woocommerce-MyAccount-navigation li a{display:block;padding:11px 15px;border-radius:10px;font-size:13px;font-weight:700}
.kipdot-page-account .woocommerce-MyAccount-navigation li.is-active a{background:var(--brand-blue);color:white}
.kipdot-page-account .woocommerce-MyAccount-content{width:72%;float:right}
.kipdot-page-account .woocommerce .woocommerce-MyAccount-content p:first-child{margin-top:0}
.kipdot-page-account .woocommerce form.login,.kipdot-page-account .woocommerce form.register{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:23px}
.kipdot-page-account .woocommerce .col2-set#customer_login .col-1,.kipdot-page-account .woocommerce .col2-set#customer_login .col-2{width:47%}
.kipdot-page-account .woocommerce form .form-row{margin-bottom:15px}
.kipdot-page-account .woocommerce form .form-row input.input-text{width:100%}
.kipdot-page-account .woocommerce .woocommerce-orders-table{background:var(--surface);border-radius:14px;overflow:hidden;border:1px solid var(--line)}
@media(max-width:950px){
 .kipdot-transaction .woocommerce .woocommerce-cart-form{width:100%;float:none;padding-right:0}
 .kipdot-transaction .woocommerce .cart-collaterals{width:100%;float:none;clear:both}
 .kipdot-page-checkout .woocommerce .col2-set,.kipdot-page-checkout .woocommerce #order_review,.kipdot-page-checkout .woocommerce #order_review_heading{float:none;width:100%;padding-right:0}
 .kipdot-page-checkout .woocommerce #order_review_heading{margin:24px 0 12px}
 .kipdot-page-account .woocommerce-MyAccount-navigation{width:100%;float:none;margin-bottom:20px}
 .kipdot-page-account .woocommerce-MyAccount-content{width:100%;float:none}
}
@media(max-width:650px){
 .kipdot-transaction{padding-top:25px;padding-bottom:40px}
 .kipdot-checkout-progress{gap:7px;justify-content:flex-start;font-size:11px;margin-bottom:25px}
 .kipdot-checkout-progress b{width:19px;height:19px;font-size:10px}
 .kipdot-checkout-progress>span{gap:4px}
 .kipdot-drawer-heading{padding:20px 18px}.kipdot-drawer-items{padding-left:17px;padding-right:17px}
 .kipdot-drawer-footer{padding:16px 18px 20px}
 .kipdot-page-account .woocommerce .col2-set#customer_login .col-1,.kipdot-page-account .woocommerce .col2-set#customer_login .col-2{width:100%;float:none}
 .kipdot-transaction .woocommerce .cart-collaterals .cart_totals{padding:15px}
 .kipdot-transaction .woocommerce table.shop_table td,.kipdot-transaction .woocommerce table.shop_table th{padding:10px 7px}
 .kipdot-transaction .woocommerce-cart-form .actions .coupon{flex-wrap:wrap}
 .kipdot-transaction .woocommerce-cart-form .actions .coupon .input-text{width:140px!important}
}
@media(prefers-reduced-motion:reduce){.kipdot-cart-drawer{animation:none}}

/* 1.2.1: compact premium drawer, modeled on the approved KIPDOT design. */
.kipdot-cart-drawer{width:min(405px,100vw);background:var(--surface)}
.kipdot-drawer-heading{position:relative;justify-content:center;text-align:center;padding:24px 54px 19px}
.kipdot-drawer-heading h2{margin:3px 0 0;font-size:23px;font-weight:900;letter-spacing:-.04em}
.kipdot-drawer-heading h2 span{font-size:13px;font-weight:650;letter-spacing:0;color:var(--muted)}
.kipdot-drawer-heading .kipdot-drawer-close{position:absolute;right:21px;top:25px}
.kipdot-drawer-eyebrow{color:var(--brand-blue)}
.kipdot-drawer-item{grid-template-columns:72px minmax(0,1fr);gap:12px;padding:17px 0}
.kipdot-drawer-image{width:72px;height:77px}
.kipdot-drawer-name{font-size:13px}
.kipdot-drawer-item-info .kipdot-drawer-unit{margin-bottom:6px}
.kipdot-drawer-stepper{height:32px}
.kipdot-drawer-stepper button{width:27px;min-width:27px}
.kipdot-drawer-stepper span{padding:0 7px;min-width:31px}
.kipdot-drawer-view,.kipdot-drawer-checkout{min-height:43px}
.kipdot-drawer-checkout{background:var(--brand-lime);color:#151b2e}
.kipdot-add-cart-error{background:#ffe2e8;color:#962039;border-radius:9px;padding:10px 12px;font-size:12px;margin:12px 0}
@media(max-width:480px){.kipdot-cart-drawer{width:min(100vw,405px)}.kipdot-drawer-heading{padding-top:20px}.kipdot-drawer-heading .kipdot-drawer-close{top:21px}}

/* KIPDOT 1.2.2 — Classic WooCommerce checkout containment and gateway-safe layout.
   WooCommerce's classic checkout prints floated columns. Without a new formatting
   context those floats can escape the article and allow the footer to overlap. */
.kipdot-page-checkout,
.kipdot-page-checkout .content-entry,
.kipdot-page-checkout .entry-content,
.kipdot-page-checkout .entry-content > .woocommerce,
.kipdot-page-checkout .woocommerce form.checkout {
    display: flow-root;
}
.site-footer { clear: both; }

/* Keep the real WooCommerce customer fields, order review, and gateway output
   in the document flow. No gateway HTML is copied or moved in JavaScript. */
@media (min-width: 1081px) {
    .kipdot-page-checkout .woocommerce form.checkout.woocommerce-checkout {
        display: grid;
        grid-template-columns: minmax(0, 1.52fr) minmax(340px, .9fr);
        grid-template-areas: "customer review-title" "customer review";
        grid-template-rows: auto 1fr;
        column-gap: clamp(24px, 3vw, 46px);
        align-items: start;
        width: 100%;
    }
    .kipdot-page-checkout .woocommerce form.checkout.woocommerce-checkout::before,
    .kipdot-page-checkout .woocommerce form.checkout.woocommerce-checkout::after {
        content: none;
        display: none;
    }
    .kipdot-page-checkout .woocommerce form.checkout.woocommerce-checkout > #customer_details {
        grid-area: customer;
        width: 100%;
        min-width: 0;
        float: none;
        padding-right: 0;
        margin: 0;
    }
    .kipdot-page-checkout .woocommerce form.checkout.woocommerce-checkout > #order_review_heading {
        grid-area: review-title;
        float: none;
        width: 100%;
        min-width: 0;
        margin: 0 0 14px;
        align-self: end;
    }
    .kipdot-page-checkout .woocommerce form.checkout.woocommerce-checkout > #order_review {
        grid-area: review;
        float: none;
        width: 100%;
        min-width: 0;
        margin: 0;
        align-self: start;
    }
    /* Unrecognized add-on sections get their own full-width row instead
       of squeezing between billing and the order summary. */
    .kipdot-page-checkout .woocommerce form.checkout.woocommerce-checkout > :not(#customer_details):not(#order_review_heading):not(#order_review) {
        grid-column: 1 / -1;
        min-width: 0;
    }
}

.kipdot-page-checkout .woocommerce #order_review {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
}
.kipdot-page-checkout .woocommerce #order_review table.shop_table {
    width: 100%;
    table-layout: auto;
}
.kipdot-page-checkout .woocommerce #order_review table.shop_table :is(th,td) {
    overflow-wrap: anywhere;
    vertical-align: top;
}
.kipdot-page-checkout .woocommerce #order_review table.shop_table td:last-child,
.kipdot-page-checkout .woocommerce #order_review table.shop_table th:last-child {
    text-align: right;
    white-space: normal;
}
.kipdot-page-checkout .woocommerce #payment,
.kipdot-page-checkout .woocommerce #payment ul.payment_methods,
.kipdot-page-checkout .woocommerce #payment .payment_box,
.kipdot-page-checkout .woocommerce #payment li.wc_payment_method {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}
.kipdot-page-checkout .woocommerce #payment ul.payment_methods {
    padding: 16px 14px;
    margin: 0;
    list-style: none;
}
.kipdot-page-checkout .woocommerce #payment li.wc_payment_method {
    overflow-wrap: anywhere;
    padding: 10px 0;
    line-height: 1.5;
}
.kipdot-page-checkout .woocommerce #payment .payment_box {
    padding: 16px;
    border-radius: 10px;
    overflow-wrap: anywhere;
}
.kipdot-page-checkout .woocommerce #payment .payment_box :is(img,iframe,svg) { max-width: 100%; }
.kipdot-page-checkout .woocommerce #payment .place-order { padding: 16px 14px; }
.kipdot-page-checkout .woocommerce form.checkout :is(input.input-text,textarea.input-text,select) {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
}
.kipdot-page-checkout .woocommerce #order_review,
.kipdot-page-checkout .woocommerce #order_review_heading,
.kipdot-page-checkout .woocommerce form.checkout :is(label,h2,h3,h4,p) {
    color: var(--ink);
}
.kipdot-page-checkout .woocommerce form.checkout .form-row-first,
.kipdot-page-checkout .woocommerce form.checkout .form-row-last { max-width: 100%; }

@media (max-width: 1080px) {
    .kipdot-page-checkout .woocommerce form.checkout.woocommerce-checkout { display: flow-root; }
    .kipdot-page-checkout .woocommerce #customer_details,
    .kipdot-page-checkout .woocommerce #order_review_heading,
    .kipdot-page-checkout .woocommerce #order_review {
        clear: both;
        float: none;
        width: 100%;
        padding-right: 0;
    }
    .kipdot-page-checkout .woocommerce #order_review_heading { margin: 28px 0 14px; }
}
@media (max-width: 540px) {
    .kipdot-page-checkout .woocommerce #order_review { padding: 14px; }
    .kipdot-page-checkout .woocommerce form.checkout .form-row-first,
    .kipdot-page-checkout .woocommerce form.checkout .form-row-last {
        clear: both;
        float: none;
        width: 100%;
    }
    .kipdot-page-checkout .woocommerce #payment ul.payment_methods { padding: 12px; }
}

/* Full-width billing rows must not run alongside the half-width name fields. */
.kipdot-page-checkout .woocommerce form.checkout #customer_details .form-row:not(.form-row-first):not(.form-row-last) {
    clear: both;
}
.kipdot-page-checkout .woocommerce form.checkout #customer_details .form-row-first,
.kipdot-page-checkout .woocommerce form.checkout #customer_details .form-row-last {
    min-width: 0;
}
