/* ========== Header cart count ========== */
#av-cart-link { position: relative; overflow: visible; }
.av-cart-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: var(--av-blue, #1592E6); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px var(--av-bg, #fff); pointer-events: none; }
.av-cart-count[data-count="0"] { display: none; }

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important; }

/* ========== Page frame ========== */
.av-wc { background: var(--av-bg, #fff); color: var(--av-navy, #0B1F3A); }
.av-wc-wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); box-sizing: border-box; }
.av-wc-head { padding: clamp(44px, 6vw, 72px) 0 clamp(32px, 4vw, 44px); background-color: #EAF5FD; background-image: radial-gradient(circle at 85% 20%, #CFE9FB 0%, rgba(234, 245, 253, 0) 55%), linear-gradient(180deg, #F3F9FE 0%, #EAF5FD 100%); }
.av-wc-eb { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: #1592E6; }
.av-wc-head h1 { margin: 0; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -.025em; font-weight: 700; color: #0B1F3A; }
.av-wc-lead { margin: 12px 0 0; max-width: 620px; font-size: 17px; line-height: 1.55; color: #4A5D70; }
.av-wc-steps { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; font-weight: 600; color: #7A8B9C; }
.av-wc-steps li { display: flex; align-items: center; gap: 8px; margin: 0; }
.av-wc-steps span { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; background: #fff; border: 1.5px solid #C9DCEB; color: #7A8B9C; }
.av-wc-steps .is-current, .av-wc-steps .is-done { color: #0B1F3A; }
.av-wc-steps .is-current span { background: #1592E6; border-color: #1592E6; color: #fff; }
.av-wc-steps .is-done span { background: #0B1F3A; border-color: #0B1F3A; color: #fff; }
.av-wc-body { padding-top: clamp(36px, 4vw, 56px); padding-bottom: clamp(72px, 8vw, 104px); }

/* ========== Base controls ========== */
.av-wc .woocommerce { font-family: inherit; color: var(--av-navy, #0B1F3A); font-size: 16px; }
.av-wc h2, .av-wc h3 { margin: 0 0 18px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--av-navy, #0B1F3A); }
.av-wc label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--av-navy, #0B1F3A); }
.av-wc label.checkbox, .av-wc .woocommerce-form__label-for-checkbox { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.av-wc input[type="checkbox"], .av-wc input[type="radio"] { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: var(--av-blue, #1592E6); cursor: pointer; }
.av-wc .required { color: #C0392B; text-decoration: none; border: 0; }
.av-wc .optional { font-weight: 400; color: var(--av-muted, #5B6B7B); }
.av-wc input.input-text, .av-wc input[type="text"], .av-wc input[type="email"], .av-wc input[type="tel"], .av-wc input[type="password"], .av-wc select, .av-wc textarea { width: 100%; box-sizing: border-box; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--av-line, #DCE6EF); border-radius: 10px; background: var(--av-surface, #fff); color: var(--av-navy, #0B1F3A); font: inherit; font-size: 16px; line-height: 1.4; box-shadow: none; transition: border-color .2s, box-shadow .2s; }
.av-wc textarea { min-height: 110px; }
.av-wc input.input-text:focus, .av-wc input:focus, .av-wc select:focus, .av-wc textarea:focus { outline: 0; border-color: var(--av-blue, #1592E6); box-shadow: 0 0 0 3px rgba(21, 146, 230, .15); }
.av-wc .select2-container .select2-selection--single { height: 50px; border: 1.5px solid var(--av-line, #DCE6EF); border-radius: 10px; background: var(--av-surface, #fff); }
.av-wc .select2-container .select2-selection--single .select2-selection__rendered { line-height: 47px; padding: 0 40px 0 14px; color: var(--av-navy, #0B1F3A); }
.av-wc .select2-container .select2-selection--single .select2-selection__arrow { height: 48px; right: 8px; }
.av-wc .form-row { margin: 0 0 16px; padding: 0; }
.av-wc .button, .av-wc button.button, .av-wc a.button, .av-wc input.button, .av-wc #place_order { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 0; border-radius: 10px; background: var(--av-blue, #1592E6); color: #fff !important; font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; box-shadow: none; transition: background-color .2s, color .2s; }
.av-wc .button:hover, .av-wc #place_order:hover { background: var(--av-blue-hover, #0B7BC9); }
.av-wc .button:disabled, .av-wc .button.disabled, .av-wc .button:disabled[disabled] { opacity: .45; cursor: not-allowed; padding: 0 24px; }
.av-wc button[name="update_cart"], .av-wc button[name="apply_coupon"] { background: transparent; color: var(--av-navy, #0B1F3A) !important; border: 1.5px solid var(--av-line, #DCE6EF); }
.av-wc button[name="update_cart"]:hover, .av-wc button[name="apply_coupon"]:hover { background: var(--av-bg-alt, #F5F8FB); }

/* ========== Notices (classic + WooCommerce 11 block "notice banners"; body prefix beats WooCommerce's own .is-info/.is-error colors) ========== */
.av-wc .woocommerce-info, .av-wc .woocommerce-message, .av-wc .woocommerce-error, .av-wc .woocommerce-noreviews { list-style: none; margin: 0 0 24px; padding: 16px 18px; border: 0; border-radius: 14px; background: var(--av-ice, #EAF5FD); color: var(--av-navy, #0B1F3A); font-size: 15px; line-height: 1.5; }
.av-wc .woocommerce-info::before, .av-wc .woocommerce-message::before, .av-wc .woocommerce-error::before { display: none; }
.av-wc .woocommerce-error { background: #FDECEC; color: #8A1C1C; }
.av-wc .woocommerce-error li { margin: 0; }
.av-wc .woocommerce-info a, .av-wc .woocommerce-message a { color: var(--av-blue, #1592E6); font-weight: 600; text-decoration: none; }
.av-wc .woocommerce-message .button, .av-wc .woocommerce-info .button { float: right; min-height: 0; padding: 0; background: none; color: var(--av-blue, #1592E6) !important; }
body.av-wc-page .av-wc .wc-block-components-notice-banner { margin: 0 0 24px; padding: 14px 18px; border: 0; border-radius: 14px; background-color: var(--av-ice, #EAF5FD); color: var(--av-navy, #0B1F3A); font-size: 15px; line-height: 1.5; gap: 12px; }
body.av-wc-page .av-wc .wc-block-components-notice-banner > svg { background-color: var(--av-blue, #1592E6); fill: #fff; border-radius: 50%; }
body.av-wc-page .av-wc .wc-block-components-notice-banner a { color: var(--av-blue, #1592E6); font-weight: 600; text-decoration: none; }
body.av-wc-page .av-wc .wc-block-components-notice-banner.is-error { background-color: #FDECEC; color: #8A1C1C; }
body.av-wc-page .av-wc .wc-block-components-notice-banner.is-error > svg { background-color: #C0392B; }
body.av-wc-page .av-wc .wc-block-components-notice-banner.is-success { background-color: #E3F6EC; color: #0A5C2F; }
body.av-wc-page .av-wc .wc-block-components-notice-banner.is-success > svg { background-color: #0A7A3E; }
.av-wc form.checkout_coupon, .av-wc--checkout form.woocommerce-form-login.login { margin: 0 0 24px; padding: 20px; border: 1px solid var(--av-line, #DCE6EF); border-radius: 14px; }

/* ========== Tables ========== */
.av-wc table.shop_table { width: 100%; margin: 0; border: 0; border-collapse: collapse; border-radius: 0; }
.av-wc table.shop_table th, .av-wc table.shop_table td { padding: 16px 12px; border: 0; border-bottom: 1px solid var(--av-line, #DCE6EF); background: transparent; text-align: left; vertical-align: middle; font-size: 15px; }
.av-wc table.shop_table thead th { padding-top: 0; font-size: 13px; font-weight: 600; color: var(--av-muted, #5B6B7B); }
.av-wc table.shop_table th:first-child, .av-wc table.shop_table td:first-child { padding-left: 0; }
.av-wc table.shop_table th:last-child, .av-wc table.shop_table td:last-child { padding-right: 0; }
.av-wc .shop_table .product-thumbnail { width: 96px; }
.av-wc .shop_table .product-thumbnail img { width: 80px; height: 80px; object-fit: contain; border-radius: 12px; border: 1px solid var(--av-line, #DCE6EF); background: #fff; }
.av-wc .shop_table .product-name a { color: var(--av-navy, #0B1F3A); font-size: 16px; font-weight: 600; text-decoration: none; }
.av-wc .shop_table .product-remove { width: 36px; }
.av-wc .shop_table a.remove { display: inline-block; width: 28px; height: 28px; line-height: 26px; border-radius: 50%; background: transparent; color: var(--av-muted, #5B6B7B) !important; font-size: 20px; text-align: center; }
.av-wc .shop_table a.remove:hover { background: #FDECEC; color: #C0392B !important; }
.av-wc .quantity input.qty { width: 72px; min-height: 44px; padding: 8px; text-align: center; border: 1.5px solid var(--av-line, #DCE6EF); border-radius: 10px; background: var(--av-surface, #fff); color: var(--av-navy, #0B1F3A); font: inherit; font-weight: 600; }
.av-wc td.actions { padding-top: 20px; border-bottom: 0; }
.av-wc td.actions .coupon { float: left; display: flex; gap: 10px; }
.av-wc td.actions .coupon label { display: none; }
.av-wc td.actions .coupon input.input-text { width: 200px; }
.av-wc td.actions > .button { float: right; }

/* ========== Cart ========== */
.av-wc--cart .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.av-wc--cart .woocommerce::before, .av-wc--cart .woocommerce::after, .av-wc--checkout .woocommerce::before, .av-wc--checkout .woocommerce::after, .av-wc--account .woocommerce::before, .av-wc--account .woocommerce::after, .av-wc--checkout form.checkout::before, .av-wc--checkout form.checkout::after { display: none; }
.av-wc--cart .woocommerce > * { grid-column: 1 / -1; }
.av-wc--cart .woocommerce > .woocommerce-cart-form { grid-column: 1; }
.av-wc--cart .woocommerce > .cart-collaterals { grid-column: 2; width: auto; }
.av-wc--cart .cart-collaterals .cross-sells { display: none; }
.av-wc--cart .cart-collaterals .cart_totals { float: none; width: 100%; box-sizing: border-box; padding: 28px; border-radius: 20px; background: var(--av-bg-alt, #F5F8FB); position: sticky; top: 110px; }
.av-wc .cart_totals table.shop_table th { width: 40%; font-weight: 500; color: var(--av-muted, #5B6B7B); }
.av-wc .order-total th, .av-wc .order-total td, .av-wc .order-total strong { font-size: 18px; font-weight: 700 !important; color: var(--av-navy, #0B1F3A) !important; border-bottom: 0 !important; }
.av-wc .woocommerce-shipping-destination, .av-wc .shipping-calculator-button { font-size: 13px; color: var(--av-muted, #5B6B7B); }
.av-wc .wc-proceed-to-checkout { padding: 18px 0 0; }
.av-wc .wc-proceed-to-checkout a.checkout-button { width: 100%; min-height: 54px; margin: 0; font-size: 17px; }
.av-wc--cart .cart-empty { font-size: 18px; }
.av-wc--cart .return-to-shop { margin: 8px 0 0; }
.av-wc--cart .return-to-shop .button { background: transparent; color: var(--av-navy, #0B1F3A) !important; border: 1.5px solid var(--av-navy, #0B1F3A); }
.av-wc--cart .return-to-shop .button:hover { background: var(--av-navy, #0B1F3A); color: var(--av-bg, #fff) !important; }
/* Empty cart: product suggestions */
.av-empty { margin: 0 0 32px; }
.av-empty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.av-empty-card { display: flex; flex-direction: column; gap: 6px; color: var(--av-navy, #0B1F3A); text-decoration: none; }
.av-empty-img { display: block; aspect-ratio: 4 / 3; margin-bottom: 8px; border-radius: 18px; overflow: hidden; border: 1px solid var(--av-line, #DCE6EF); background: #fff; transition: border-color .25s, box-shadow .25s; }
.av-empty-img img { width: 100%; height: 100%; object-fit: contain; display: block; filter: brightness(1.012); transition: transform .35s; }
.av-empty-name { font-size: 18px; font-weight: 600; }
.av-empty-price { font-size: 15px; color: var(--av-muted, #5B6B7B); }
.av-empty-price .amount { font-weight: 600; color: var(--av-navy, #0B1F3A); }
.av-empty-cta { margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--av-blue, #1592E6); }
.av-empty-card:hover .av-empty-img { border-color: #9CC9EC; box-shadow: 0 14px 34px rgba(11, 31, 58, .08); }
.av-empty-card:hover .av-empty-img img { transform: scale(1.04); }
.av-empty-card:hover .av-empty-name { color: var(--av-blue, #1592E6); }

/* ========== Checkout ========== */
.av-wc--checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; column-gap: clamp(28px, 4vw, 56px); align-items: start; }
.av-wc--checkout form.checkout > * { grid-column: 1; }
.av-wc--checkout #customer_details { grid-column: 1; grid-row: 1 / span 3; }
.av-wc--checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; padding: 28px 28px 4px; border-radius: 20px 20px 0 0; background: var(--av-bg-alt, #F5F8FB); }
.av-wc--checkout #order_review { grid-column: 2; grid-row: 2; padding: 8px 28px 28px; border-radius: 0 0 20px 20px; background: var(--av-bg-alt, #F5F8FB); }
.av-wc--checkout .col2-set { width: 100%; }
.av-wc--checkout .col2-set .col-1, .av-wc--checkout .col2-set .col-2 { float: none; width: 100%; max-width: none; padding: 0; }
.av-wc--checkout .col2-set .col-2 { margin-top: 12px; }
.av-wc--checkout #ship-to-different-address { margin: 8px 0 16px; font-size: 16px; }
.av-wc--checkout #ship-to-different-address label { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.av-wc #payment { background: transparent; border-radius: 0; }
.av-wc #payment ul.payment_methods { list-style: none; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--av-line, #DCE6EF); }
.av-wc #payment ul.payment_methods li { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.av-wc #payment ul.payment_methods li img { max-height: 22px; margin-left: 6px; vertical-align: middle; }
.av-wc #payment div.payment_box { margin: 10px 0 0; padding: 16px; border-radius: 12px; background: var(--av-surface, #fff); color: var(--av-navy, #0B1F3A); font-weight: 400; }
.av-wc #payment div.payment_box::before { display: none; }
.av-wc #payment .place-order { margin: 0; padding: 18px 0 0; }
.av-wc #place_order { float: none; width: 100%; min-height: 56px; font-size: 17px; }
.av-wc .woocommerce-terms-and-conditions-wrapper, .av-wc .woocommerce-privacy-policy-text p { font-size: 13px; line-height: 1.5; color: var(--av-muted, #5B6B7B); }
.av-wc .woocommerce-privacy-policy-text a, .av-wc .woocommerce-terms-and-conditions-wrapper a { color: var(--av-blue, #1592E6); }
.av-wc--checkout table.woocommerce-checkout-review-order-table .product-name { font-weight: 500; }
/* Order summary: product photo next to each item, quantity under the name */
.av-ri { display: inline-flex; align-items: center; gap: 12px; vertical-align: middle; }
.av-ri img { width: 52px; height: 52px; flex: 0 0 52px; object-fit: contain; border-radius: 10px; border: 1px solid var(--av-line, #DCE6EF); background: #fff; filter: brightness(1.012); }
.av-ri-name { display: flex; flex-direction: column; gap: 2px; }
.av-ri-qty { font-size: 13px; font-weight: 400; color: var(--av-muted, #5B6B7B); }
/* Terms checkbox: text and the required star flow together, second line aligned with the first (not under the box) */
body.av-wc-page .av-wc .woocommerce-terms-and-conditions-wrapper label.woocommerce-form__label-for-checkbox { display: block !important; position: relative; padding-left: 28px; line-height: 1.5; }
body.av-wc-page .av-wc .woocommerce-terms-and-conditions-wrapper label.woocommerce-form__label-for-checkbox input { position: absolute; left: 0; top: 2px; margin: 0; }
/* Reassurance under Place order */
.av-co-trust { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--av-line, #DCE6EF); display: grid; gap: 8px; font-size: 14px; font-weight: 400; color: var(--av-muted, #5B6B7B); }
.av-co-trust li { margin: 0; padding-left: 24px; background: url('/wp-content/uploads/2026/10/av-icon-check-blue.png') left center / 15px no-repeat; }
.av-co-trust a { color: var(--av-blue, #1592E6); font-weight: 600; text-decoration: none; }

/* ========== Order received ========== */
body.av-wc-page .av-wc .woocommerce-thankyou-order-received, body.av-wc-page .av-wc p.woocommerce-notice--success { display: none; }
.av-wc .woocommerce ul.order_details, .av-wc ul.woocommerce-order-overview { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.av-wc .woocommerce ul.order_details::before, .av-wc .woocommerce ul.order_details::after { display: none; }
.av-wc .woocommerce ul.order_details li { flex: 1 1 160px; float: none; margin: 0; padding: 16px 18px; border: 1px solid var(--av-line, #DCE6EF); border-radius: 14px; font-size: 13px; color: var(--av-muted, #5B6B7B); text-transform: none; }
.av-wc .woocommerce ul.order_details li strong { display: block; margin-top: 4px; font-size: 16px; color: var(--av-navy, #0B1F3A); }
.av-next { margin: 0 0 40px; padding: 28px; border-radius: 20px; background: var(--av-bg-alt, #F5F8FB); }
.av-next ol { list-style: none; counter-reset: avn; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.av-next li { counter-increment: avn; display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 15px; line-height: 1.5; color: var(--av-muted, #5B6B7B); }
.av-next li::before { content: counter(avn); width: 30px; height: 30px; margin-bottom: 6px; border-radius: 50%; background: var(--av-blue, #1592E6); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.av-next b { font-size: 16px; color: var(--av-navy, #0B1F3A); }
.av-next a { color: var(--av-blue, #1592E6); font-weight: 600; text-decoration: none; }
.av-wc .woocommerce-order-details, .av-wc .woocommerce-customer-details { margin-top: 32px; }
.av-wc .woocommerce-customer-details address { padding: 18px; border: 1px solid var(--av-line, #DCE6EF); border-radius: 14px; font-style: normal; line-height: 1.6; }

/* ========== My account ========== */
.av-wc--account .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.av-wc--account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.av-wc .woocommerce-MyAccount-navigation, .av-wc .woocommerce-MyAccount-content { float: none; width: auto; }
.av-wc .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.av-wc .woocommerce-MyAccount-navigation li { margin: 0; padding: 0; border: 0; }
.av-wc .woocommerce-MyAccount-navigation a { display: block; padding: 11px 14px; border-radius: 10px; color: var(--av-navy, #0B1F3A); font-weight: 500; text-decoration: none; }
.av-wc .woocommerce-MyAccount-navigation a:hover { background: var(--av-bg-alt, #F5F8FB); }
.av-wc .woocommerce-MyAccount-navigation li.is-active a { background: var(--av-ice, #EAF5FD); color: var(--av-blue, #1592E6); font-weight: 600; text-decoration: none; }
.av-wc .woocommerce-MyAccount-content p { line-height: 1.6; }
.av-wc .woocommerce-MyAccount-content a:not(.button) { color: var(--av-blue, #1592E6); font-weight: 600; text-decoration: none; }
.av-wc .woocommerce-orders-table .button, .av-wc .woocommerce-MyAccount-content .button { min-height: 40px; padding: 0 16px; font-size: 14px; }
.av-wc .woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.av-wc .woocommerce-Addresses .woocommerce-Address { float: none; width: auto; padding: 24px; border: 1px solid var(--av-line, #DCE6EF); border-radius: 14px; }
.av-wc .woocommerce-Address address { font-style: normal; line-height: 1.6; }
.av-wc--login #customer_login { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.av-wc--login #customer_login::before, .av-wc--login #customer_login::after { display: none; }
.av-wc--login #customer_login .u-column1, .av-wc--login #customer_login .u-column2 { float: none; width: auto; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--av-line, #DCE6EF); border-radius: 20px; }
body.av-wc-page .av-wc--login .woocommerce form.login, body.av-wc-page .av-wc--login .woocommerce form.register { margin: 0; padding: 0; border: 0; border-radius: 0; }
.av-wc--login .woocommerce-LostPassword a, .av-wc--login .woocommerce-privacy-policy-text a { color: var(--av-blue, #1592E6); font-weight: 600; text-decoration: none; }
.av-wc--login .woocommerce-form-login__rememberme { margin: 4px 0 16px; }
.av-wc--login .woocommerce-form-login .form-row:last-of-type { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }

/* ========== Override WooCommerce theme defaults (needs higher specificity) ========== */
body.av-wc-page .av-wc .woocommerce form .form-row .input-text,
body.av-wc-page .av-wc .woocommerce form .form-row select,
body.av-wc-page .av-wc .woocommerce form .form-row textarea,
body.av-wc-page .av-wc .woocommerce .coupon .input-text,
body.av-wc-page .av-wc .woocommerce .quantity .qty { border: 1.5px solid var(--av-line, #DCE6EF); border-radius: 10px; padding: 12px 14px; background: var(--av-surface, #fff); color: var(--av-navy, #0B1F3A); font-size: 16px; line-height: 1.4; }
body.av-wc-page .av-wc .woocommerce .quantity .qty { padding: 8px; }
body.av-wc-page .av-wc .woocommerce form .form-row .input-text:focus,
body.av-wc-page .av-wc .woocommerce form .form-row select:focus,
body.av-wc-page .av-wc .woocommerce form .form-row textarea:focus,
body.av-wc-page .av-wc .woocommerce .coupon .input-text:focus { border-color: var(--av-blue, #1592E6); box-shadow: 0 0 0 3px rgba(21, 146, 230, .15); }
body.av-wc-page .av-wc .select2-container--default .select2-selection--single .select2-selection__rendered { height: 47px; padding: 0 40px 0 14px; line-height: 47px; }
/* Buttons: WooCommerce's block-theme CSS forces display:block on some buttons (text sat at the top) */
body.av-wc-page .av-wc .woocommerce .button,
body.av-wc-page .av-wc .woocommerce a.button,
body.av-wc-page .av-wc .woocommerce-orders-table__cell .button { display: inline-flex; align-items: center; justify-content: center; padding-top: 0; padding-bottom: 0; box-sizing: border-box; line-height: 1.2; }
body.av-wc-page .av-wc .wc-proceed-to-checkout a.checkout-button { display: flex; width: 100%; min-height: 54px; padding: 0 24px; font-size: 17px; }
/* Payment methods: radio sits next to its label (label may shrink and wrap its card logos) */
body.av-wc-page .av-wc #payment ul.payment_methods li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
body.av-wc-page .av-wc #payment ul.payment_methods li > input.input-radio { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--av-blue, #1592E6); }
body.av-wc-page .av-wc #payment ul.payment_methods li > label { display: inline-flex; flex: 1 1 0; min-width: 0; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
body.av-wc-page .av-wc #payment ul.payment_methods li > .payment_box { flex: 1 0 100%; }
/* Buy now goes straight to checkout: hide the "added to your cart" notice there (classic or block notice banner, both carry a View cart link) */
.av-wc--checkout .woocommerce-notices-wrapper > :has(.wc-forward) { display: none; }
/* Order received: hide WooCommerce's plain duplicate "Thank you" line (follows the success notice); long emails wrap cleanly */
.av-wc--received .woocommerce-order > p.woocommerce-notice + p:not([class]) { display: none; }
.av-wc .woocommerce ul.order_details li.woocommerce-order-overview__email { flex: 2 1 240px; }
.av-wc .woocommerce ul.order_details li strong { overflow-wrap: anywhere; }

/* ========== Responsive ========== */
/* Checkout errors show above the form (desktop two-column layout) */
@media (min-width: 961px) {
	.av-wc--checkout form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; grid-row: 1; }
	.av-wc--checkout form.checkout:has(> .woocommerce-NoticeGroup) #customer_details { grid-row: 2 / span 3; }
	.av-wc--checkout form.checkout:has(> .woocommerce-NoticeGroup) #order_review_heading { grid-row: 2; }
	.av-wc--checkout form.checkout:has(> .woocommerce-NoticeGroup) #order_review { grid-row: 3; }
}
@media (max-width: 960px) {
	.av-wc--cart .woocommerce, .av-wc--checkout form.checkout, .av-wc--account .woocommerce { grid-template-columns: 1fr; }
	.av-wc--cart .woocommerce > .woocommerce-cart-form, .av-wc--cart .woocommerce > .cart-collaterals { grid-column: 1; }
	.av-wc--checkout #customer_details, .av-wc--checkout #order_review_heading, .av-wc--checkout #order_review { grid-column: 1; grid-row: auto; }
	.av-wc--checkout form.checkout > .woocommerce-NoticeGroup { order: -1; }
	.av-wc--checkout #order_review_heading { margin-top: 24px; }
	.av-wc--cart .cart-collaterals .cart_totals { position: static; }
	.av-next ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.av-wc--login #customer_login, .av-wc .woocommerce-Addresses { grid-template-columns: 1fr; }
	.av-next ol { grid-template-columns: 1fr; }
	.av-wc td.actions .coupon { float: none; margin-bottom: 12px; }
	.av-wc td.actions .coupon input.input-text { width: 100%; }
	.av-wc td.actions > .button { float: none; width: 100%; }
	.av-empty-grid { grid-template-columns: 1fr; }
}

/* ========== Dark theme ========== */
html[data-theme="dark"] .av-wc-head { background-color: #0A1524; background-image: radial-gradient(circle at 80% 30%, rgba(21, 146, 230, .28) 0%, rgba(10, 21, 36, 0) 55%); }
html[data-theme="dark"] .av-wc-head h1 { color: #fff; }
html[data-theme="dark"] .av-wc-lead { color: #9FB2C2; }
html[data-theme="dark"] .av-wc-steps .is-current, html[data-theme="dark"] .av-wc-steps .is-done { color: #E8EFF5; }
html[data-theme="dark"] .av-wc-steps span { background: #13253C; border-color: rgba(255, 255, 255, .2); }
html[data-theme="dark"] .av-wc-steps .is-done span { background: #E8EFF5; color: #0A1524; }
/* Product photos: soft light tile (cart table and empty-cart cards blend the photo into the tile; the small checkout photo just sits on a light tile) */
html[data-theme="dark"] .av-wc .shop_table .product-thumbnail img, html[data-theme="dark"] .av-ri img, html[data-theme="dark"] .av-empty-img { background: #DCE4EC; border-color: transparent; }
html[data-theme="dark"] .av-empty-img img { filter: none; mix-blend-mode: multiply; }
html[data-theme="dark"] body.av-wc-page .av-wc .wc-block-components-notice-banner { background-color: #13253C; color: #E8EFF5; }
html[data-theme="dark"] body.av-wc-page .av-wc .wc-block-components-notice-banner.is-error, html[data-theme="dark"] .av-wc .woocommerce-error { background-color: rgba(192, 57, 43, .2); color: #F5B7B1; }
html[data-theme="dark"] body.av-wc-page .av-wc .wc-block-components-notice-banner.is-success { background-color: rgba(10, 122, 62, .25); color: #9BE3B9; }
html[data-theme="dark"] body.av-wc-page .av-wc .wc-block-components-notice-banner a, html[data-theme="dark"] .av-wc .woocommerce-info a { color: #5CC3FF; }
html[data-theme="dark"] .av-wc--cart .return-to-shop .button { color: #E8EFF5 !important; border-color: rgba(232, 239, 245, .5); }
html[data-theme="dark"] .av-cart-count { box-shadow: 0 0 0 2px #0A1524; }
