/* HiraKart checkout: cards, district row, payment cards and summary. Loaded on the Checkout page only.
   Pages built with the CartFlows plugin keep CartFlows' own layout, so these rules skip them. */
body.woocommerce-checkout:not(.cartflows_step-template){background:#f7f5fa}
body.woocommerce-checkout:not(.cartflows_step-template) .entry-header{display:none}
body.woocommerce-checkout:not(.cartflows_step-template) .ast-container{max-width:1200px}
body.woocommerce-checkout:not(.cartflows_step-template) .entry-content>.woocommerce{max-width:1160px;margin:0 auto}

/* layout: fields card, payment card, summary card (one column on phones) */
body.woocommerce-checkout:not(.cartflows_step-template) form.woocommerce-checkout{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:start}
body.woocommerce-checkout:not(.cartflows_step-template) form.woocommerce-checkout::before,body.woocommerce-checkout:not(.cartflows_step-template) form.woocommerce-checkout::after{display:none;content:none}
body.woocommerce-checkout:not(.cartflows_step-template) form.woocommerce-checkout>*:not(#customer_details):not(#order_review):not(#order_review_heading){grid-column:1/-1}
body.woocommerce-checkout:not(.cartflows_step-template) #order_review_heading{display:none}
body.woocommerce-checkout:not(.cartflows_step-template) #order_review{display:flex;flex-direction:column;gap:14px;float:none;width:auto;padding:0;margin:0}
body.woocommerce-checkout:not(.cartflows_step-template) #order_review #payment{display:contents}
@media (min-width:960px){
  body.woocommerce-checkout:not(.cartflows_step-template) form.woocommerce-checkout{grid-template-columns:minmax(0,1fr) 400px;gap:24px}
  body.woocommerce-checkout:not(.cartflows_step-template) #customer_details{grid-column:1}
  body.woocommerce-checkout:not(.cartflows_step-template) #order_review{grid-column:2;position:sticky;top:130px}
}

/* card 1: Billing & Shipping Information */
body.woocommerce-checkout:not(.cartflows_step-template) #customer_details{background:#fff;border:1px solid var(--hk-line,#e4e1ec);border-radius:12px;padding:16px;float:none;width:auto;margin:0}
body.woocommerce-checkout:not(.cartflows_step-template) #customer_details .col-1,body.woocommerce-checkout:not(.cartflows_step-template) #customer_details .col-2{float:none;width:100%;max-width:none;padding:0;margin:0}
body.woocommerce-checkout:not(.cartflows_step-template) .woocommerce-billing-fields>h3,body.woocommerce-checkout:not(.cartflows_step-template) .woocommerce-additional-fields>h3{font-size:18px;font-weight:800;letter-spacing:-.01em;margin:0 0 6px;color:var(--hk-ink,#1a1c3a)}
body.woocommerce-checkout:not(.cartflows_step-template) .woocommerce-additional-fields>h3{display:none}
body.woocommerce-checkout:not(.cartflows_step-template) .woocommerce-billing-fields__field-wrapper,body.woocommerce-checkout:not(.cartflows_step-template) .woocommerce-additional-fields__field-wrapper{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
body.woocommerce-checkout:not(.cartflows_step-template) form .form-row{float:none;width:auto;margin:14px 0 0;padding:0}
body.woocommerce-checkout:not(.cartflows_step-template) form .form-row-wide{grid-column:1/-1}
body.woocommerce-checkout:not(.cartflows_step-template) form .form-row label{display:block;font-size:13.5px;font-weight:600;line-height:1.4;margin:0 0 6px;color:var(--hk-ink,#1a1c3a)}
body.woocommerce-checkout:not(.cartflows_step-template) form .form-row .required{color:var(--hk-rose,#c02a74);text-decoration:none}
body.woocommerce-checkout:not(.cartflows_step-template) form .form-row .optional{display:none}
body.woocommerce-checkout:not(.cartflows_step-template) form .form-row input.input-text,body.woocommerce-checkout:not(.cartflows_step-template) form .form-row textarea,body.woocommerce-checkout:not(.cartflows_step-template) form .form-row select{width:100%;min-height:44px;border:1px solid var(--hk-line,#e4e1ec);border-radius:8px;padding:11px 12px;font:inherit;font-size:16px;background:#f7f5fa;color:var(--hk-ink,#1a1c3a);box-shadow:none}
body.woocommerce-checkout:not(.cartflows_step-template) form .form-row textarea{min-height:76px;resize:vertical}
body.woocommerce-checkout:not(.cartflows_step-template) form .form-row.woocommerce-invalid input.input-text,body.woocommerce-checkout:not(.cartflows_step-template) form .form-row.woocommerce-invalid select,body.woocommerce-checkout:not(.cartflows_step-template) form .form-row.woocommerce-invalid textarea{border-color:var(--hk-rose,#c02a74)}

/* card 2: Payment method */
body.woocommerce-checkout:not(.cartflows_step-template) ul.wc_payment_methods{order:1;background:#fff;border:1px solid var(--hk-line,#e4e1ec);border-radius:12px;padding:16px;margin:0;list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:10px;border-bottom:1px solid var(--hk-line,#e4e1ec)}
body.woocommerce-checkout:not(.cartflows_step-template) ul.wc_payment_methods::before{content:"Payment method";grid-column:1/-1;font-size:18px;font-weight:800;letter-spacing:-.01em;color:var(--hk-ink,#1a1c3a)}
body.woocommerce-checkout:not(.cartflows_step-template) ul.wc_payment_methods li.wc_payment_method{position:relative;margin:0;padding:0;border:0;list-style:none;min-width:0}
body.woocommerce-checkout:not(.cartflows_step-template) ul.wc_payment_methods li.wc_payment_method>input[type="radio"]{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
body.woocommerce-checkout:not(.cartflows_step-template) ul.wc_payment_methods li.wc_payment_method>label{display:flex;align-items:center;gap:9px;min-height:56px;padding:11px 34px 11px 11px;border:1px solid var(--hk-line,#e4e1ec);border-radius:10px;background:#fff;font-size:13px;font-weight:600;line-height:1.25;cursor:pointer;width:100%;margin:0;position:relative;color:var(--hk-ink,#1a1c3a)}
body.woocommerce-checkout:not(.cartflows_step-template) ul.wc_payment_methods li.wc_payment_method>label::after{content:"";position:absolute;right:10px;top:50%;width:18px;height:18px;margin-top:-9px;border-radius:50%;border:2px solid var(--hk-line,#e4e1ec)}
body.woocommerce-checkout:not(.cartflows_step-template) ul.wc_payment_methods li.wc_payment_method>input[type="radio"]:checked+label{border-color:var(--hk-rose,#c02a74);box-shadow:inset 0 0 0 1px var(--hk-rose,#c02a74)}
body.woocommerce-checkout:not(.cartflows_step-template) ul.wc_payment_methods li.wc_payment_method>input[type="radio"]:checked+label::after{border-color:var(--hk-rose,#c02a74);background:var(--hk-rose,#c02a74) radial-gradient(circle,#fff 0 3px,transparent 3.5px)}
body.woocommerce-checkout:not(.cartflows_step-template) ul.wc_payment_methods li.wc_payment_method>input[type="radio"]:focus-visible+label{outline:2px solid var(--hk-rose,#c02a74);outline-offset:2px}
body.woocommerce-checkout:not(.cartflows_step-template) ul.wc_payment_methods li.wc_payment_method .hkc-pico{order:-1;width:30px;height:30px;border-radius:8px;display:grid;place-items:center;flex:none}
body.woocommerce-checkout:not(.cartflows_step-template) ul.wc_payment_methods li.wc_payment_method label img{max-height:26px;width:auto;order:-1}
body.woocommerce-checkout:not(.cartflows_step-template) ul.wc_payment_methods li.wc_payment_method .payment_box{grid-column:1/-1;margin:8px 0 0;padding:8px 10px;border-radius:8px;background:#f0edf7;color:var(--hk-muted,#64678a);font-size:13px;line-height:1.5}
body.woocommerce-checkout:not(.cartflows_step-template) ul.wc_payment_methods li.wc_payment_method .payment_box::before{display:none}
body.woocommerce-checkout:not(.cartflows_step-template) ul.wc_payment_methods li.wc_payment_method .payment_box p{margin:0}

/* card 3: Order Summary */
body.woocommerce-checkout:not(.cartflows_step-template) table.woocommerce-checkout-review-order-table{order:2;display:block;width:100%;margin:0;background:#fff;border:1px solid var(--hk-line,#e4e1ec);border-radius:12px;padding:16px;border-collapse:collapse}
body.woocommerce-checkout:not(.cartflows_step-template) table.woocommerce-checkout-review-order-table thead,body.woocommerce-checkout:not(.cartflows_step-template) table.woocommerce-checkout-review-order-table tbody,body.woocommerce-checkout:not(.cartflows_step-template) table.woocommerce-checkout-review-order-table tfoot{display:block}
body.woocommerce-checkout:not(.cartflows_step-template) table.woocommerce-checkout-review-order-table tr{display:flex;justify-content:space-between;align-items:center;gap:12px}
body.woocommerce-checkout:not(.cartflows_step-template) table.woocommerce-checkout-review-order-table th,body.woocommerce-checkout:not(.cartflows_step-template) table.woocommerce-checkout-review-order-table td{border:0;background:none;padding:0}
body.woocommerce-checkout:not(.cartflows_step-template) table.woocommerce-checkout-review-order-table thead th.product-total{display:none}
body.woocommerce-checkout:not(.cartflows_step-template) table.woocommerce-checkout-review-order-table thead th.product-name{font-size:0;display:block;padding:0 0 10px}
body.woocommerce-checkout:not(.cartflows_step-template) table.woocommerce-checkout-review-order-table thead th.product-name::after{content:"Order Summary";font-size:18px;font-weight:800;letter-spacing:-.01em;color:var(--hk-ink,#1a1c3a)}
body.woocommerce-checkout:not(.cartflows_step-template) table.woocommerce-checkout-review-order-table tbody tr.cart_item{padding:10px 0;border-bottom:1px solid var(--hk-line,#e4e1ec)}
body.woocommerce-checkout:not(.cartflows_step-template) table.woocommerce-checkout-review-order-table td.product-name{font-size:13.5px;font-weight:600;line-height:1.3;flex:1;min-width:0;color:var(--hk-ink,#1a1c3a)}
body.woocommerce-checkout:not(.cartflows_step-template) table.woocommerce-checkout-review-order-table td.product-name .product-quantity{display:block;font-weight:400;color:var(--hk-muted,#64678a);font-size:12.5px;margin-top:2px}
body.woocommerce-checkout:not(.cartflows_step-template) table.woocommerce-checkout-review-order-table td.product-total{font-weight:700;font-size:13.5px;white-space:nowrap}
body.woocommerce-checkout:not(.cartflows_step-template) .hkc-item{display:flex;align-items:center;gap:10px}
body.woocommerce-checkout:not(.cartflows_step-template) .hkc-item .hkc-thumb{width:52px;height:52px;flex:none;border-radius:8px;object-fit:cover;margin:0}
body.woocommerce-checkout:not(.cartflows_step-template) table.woocommerce-checkout-review-order-table tfoot tr{padding:7px 0;font-size:14px;color:var(--hk-muted,#64678a)}
body.woocommerce-checkout:not(.cartflows_step-template) table.woocommerce-checkout-review-order-table tfoot tr.order-total{border-top:1px solid var(--hk-line,#e4e1ec);margin-top:4px;padding-top:12px;font-weight:800;font-size:16.5px;color:var(--hk-ink,#1a1c3a)}
body.woocommerce-checkout:not(.cartflows_step-template) table.woocommerce-checkout-review-order-table tfoot tr.order-total th,body.woocommerce-checkout:not(.cartflows_step-template) table.woocommerce-checkout-review-order-table tfoot tr.order-total td{font-weight:800}

/* Place Order: sticks to the bottom on phones */
body.woocommerce-checkout:not(.cartflows_step-template) #payment .form-row.place-order,body.woocommerce-checkout:not(.cartflows_step-template) .form-row.place-order{order:3;position:sticky;bottom:0;z-index:5;margin:0;padding:10px 0;background:#f7f5fa;display:block;float:none;width:auto}
body.woocommerce-checkout:not(.cartflows_step-template) #place_order{width:100%;float:none;min-height:48px;border:0;border-radius:999px;background:var(--hk-navy,#1b2160);color:#fff;font-size:15px;font-weight:700;padding:0 20px;cursor:pointer}
body.woocommerce-checkout:not(.cartflows_step-template) #place_order:hover{filter:brightness(1.12)}
body.woocommerce-checkout:not(.cartflows_step-template) .woocommerce-terms-and-conditions-wrapper,body.woocommerce-checkout:not(.cartflows_step-template) .woocommerce-privacy-policy-text{font-size:12.5px;color:var(--hk-muted,#64678a);margin-bottom:8px}
@media (max-width:959px){
  body.woocommerce-checkout:not(.cartflows_step-template) .hkx.hkx-bar .nav{display:none}
  body.woocommerce-checkout:not(.cartflows_step-template).hkx-chrome-on{padding-bottom:0}
}

/* messages and the thank-you page */
body.woocommerce-checkout:not(.cartflows_step-template) .woocommerce-NoticeGroup,body.woocommerce-checkout:not(.cartflows_step-template) .woocommerce-error,body.woocommerce-checkout:not(.cartflows_step-template) .woocommerce-message{border-radius:10px}
body.woocommerce-checkout:not(.cartflows_step-template) .woocommerce-order{max-width:640px;margin:0 auto}

/* coupon result messages: green with a tick when applied, red when not */
body.woocommerce-checkout .wcf-custom-coupon-field .woocommerce-message{display:flex;align-items:center;gap:8px;margin:0 0 8px;padding:10px 12px;border-radius:10px;border:1px solid #9fd6b3;background:#e8f7ee;color:#14532d;font-size:14px;font-weight:600;line-height:1.35;list-style:none}
body.woocommerce-checkout .wcf-custom-coupon-field .woocommerce-message::before{content:"\2713";flex:none;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#16743d;color:#fff;font-size:12px;position:static;margin:0}
body.woocommerce-checkout .wcf-custom-coupon-field .woocommerce-error{margin:0 0 8px;padding:10px 12px;border-radius:10px;border:1px solid #f0b4b4;background:#fdecec;color:#8a1f1f;font-size:14px;list-style:none}
body.woocommerce-checkout .wcf-custom-coupon-field .woocommerce-error li{margin:0;padding:0}

/* Place Order: no lock icon (CartFlows adds it before the text) */
body.woocommerce-checkout #place_order::before,body.woocommerce-checkout #place_order:before{content:none !important;display:none !important;margin:0 !important}