/* ==========================================================================
   PURNAHOOTI — minimal brand styling for Cart, Checkout, My Account, Order received.
   v1.2: loaded ONLY on those pages, and can be switched off in
   Appearance → PURNAHOOTI Options → WooCommerce Compatibility.
   Rules here only touch colours, borders and radius — never layout, widths,
   field positions, validation states or block internals.
   ========================================================================== */

/* Classic (shortcode) pages */
.woocommerce table.shop_table { border-color: var(--pnh-line); border-radius: var(--pnh-radius); }
.woocommerce table.shop_table th { font-weight: 600; color: var(--pnh-navy); }
.woocommerce .cart-collaterals .cart_totals h2, .woocommerce-checkout h3 { font-size: calc(var(--pnh-h3) * .85); }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea { border: 1px solid var(--pnh-line-strong); border-radius: var(--pnh-input-radius, var(--pnh-radius)); padding: .7rem .85rem; font: inherit; background: #fff; }
.woocommerce form .form-row select { border: 1px solid var(--pnh-line-strong); border-radius: var(--pnh-input-radius, var(--pnh-radius)); padding: .6rem .8rem; font: inherit; background-color: #fff; }
/* Keep WooCommerce's own red/green validation borders visible. */
.woocommerce form .form-row.woocommerce-invalid input.input-text, .woocommerce form .form-row.woocommerce-invalid select { border-color: var(--wc-red, #a00); }
.woocommerce form .form-row.woocommerce-validated input.input-text, .woocommerce form .form-row.woocommerce-validated select { border-color: var(--wc-green, #6d9c1f); }
.woocommerce-checkout #payment { background: var(--pnh-ivory); border-radius: var(--pnh-radius); }
.woocommerce-checkout #payment div.payment_box { background: #fff; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #fff; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 1.5rem; padding: 0; border: 1px solid var(--pnh-line); border-radius: var(--pnh-radius); }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: .8rem 1rem; border-bottom: 1px solid var(--pnh-line); color: var(--pnh-navy); }
.woocommerce-account .woocommerce-MyAccount-navigation li:last-child a { border-bottom: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--pnh-ivory); color: var(--pnh-maroon); }
.woocommerce-cart .cart-empty.woocommerce-info { text-align: center; }
.woocommerce-cart .return-to-shop { text-align: center; }

/* Cart & Checkout blocks: brand colour on the main buttons only. */
.wc-block-cart__submit-button.contained, .wc-block-components-checkout-place-order-button.contained,
.wc-block-cart .wc-block-components-button.contained, .wc-block-checkout .wc-block-components-button.contained { background-color: var(--pnh-maroon); color: #fff; border-color: transparent; }
.wc-block-cart__submit-button.contained:hover, .wc-block-components-checkout-place-order-button.contained:hover,
.wc-block-cart .wc-block-components-button.contained:hover, .wc-block-checkout .wc-block-components-button.contained:hover { background-color: var(--pnh-maroon-dark, #5f1414); color: #fff; }
.wc-block-cart a, .wc-block-checkout a, .woocommerce-order a { color: var(--pnh-maroon); }

/* Country / State dropdowns (selectWoo): same height as the text fields; arrow stays centred. */
.woocommerce form .form-row .select2-container .select2-selection--single { height: auto; min-height: 44px; display: flex; align-items: center; border-color: var(--pnh-line-strong); border-radius: var(--pnh-input-radius, var(--pnh-radius)); }
.woocommerce form .form-row .select2-container .select2-selection--single .select2-selection__rendered { line-height: 1.4; padding-left: .85rem; }
.woocommerce form .form-row .select2-container .select2-selection--single .select2-selection__arrow { height: 100%; top: 0; }
