/* Keep both VAT bases compact and readable on native Blocks price surfaces. */
.wc-block-cart-item__prices .wc-block-components-product-price,
.wc-block-cart-item__total .wc-block-components-product-price,
.wc-block-components-order-summary-item__individual-prices .wc-block-components-product-price,
.wc-block-components-order-summary-item__total-price .wc-block-components-product-price,
.wc-block-components-totals-footer-item__value {
    white-space: pre-line;
    line-height: 1.55;
    font-size: 13px;
    font-weight: 600;
}
.wc-block-mini-cart-items .cw-vat-single .wc-block-cart-item__total,
.wc-block-components-order-summary-item.cw-vat-single .wc-block-components-order-summary-item__total-price { display: none; }
.wc-block-mini-cart-items .wc-block-cart-item__prices { margin-top: 6px; }
.wc-vat-subtotal { font-size: 0 !important; }
.wc-vat-subtotal::after { content: attr(data-cw-vat); white-space: pre-line; font-size: 13px; line-height: 1.55; font-weight: 500; }
.wc-block-components-totals-footer-item .wc-block-components-totals-footer-item-tax-value { font-size: inherit !important; font-weight: inherit !important; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__description,
.wc-block-components-totals-footer-item .wc-block-components-totals-footer-item-tax { font-size: 12px !important; line-height: 1.5; font-weight: 400 !important; }
body .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__individual-prices,
body .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__individual-prices .wc-block-components-product-price,
body .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__individual-prices .wc-block-components-product-price__value,
body .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__individual-prices bdi { font-size: 13px !important; font-weight: 600 !important; line-height: 1.6 !important; }
body .wc-block-components-totals-item__value.cw-vat-subtotal > bdi { display: none; }
body .wp-block-woocommerce-checkout .wc-vat-subtotal::after,
body .wp-block-woocommerce-cart .wc-vat-subtotal::after { font-size: 13px !important; font-weight: 500 !important; }
body .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item,
body .wp-block-woocommerce-cart .wc-block-components-totals-footer-item { padding: 20px 24px !important; }
body .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item > .wc-block-components-totals-item__label,
body .wp-block-woocommerce-cart .wc-block-components-totals-footer-item > .wc-block-components-totals-item__label { font-family: inherit; font-size: 18px !important; }
body .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item > .wc-block-components-totals-item__value,
body .wp-block-woocommerce-cart .wc-block-components-totals-footer-item > .wc-block-components-totals-item__value { white-space: pre-line; font-size: 16px !important; line-height: 1.6 !important; font-weight: 700 !important; }
body .wc-block-components-totals-footer-item > .wc-block-components-totals-item__value .wc-block-components-totals-footer-item-tax-value,
body .wc-block-components-totals-footer-item > .wc-block-components-totals-item__value bdi { font-size: inherit !important; font-weight: inherit !important; }
body .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item-tax,
body .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item-tax span,
body .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item-tax bdi,
body .wp-block-woocommerce-cart .wc-block-components-totals-footer-item-tax,
body .wp-block-woocommerce-cart .wc-block-components-totals-footer-item-tax span,
body .wp-block-woocommerce-cart .wc-block-components-totals-footer-item-tax bdi { font-family: inherit !important; font-size: 12px !important; line-height: 1.5 !important; font-weight: 400 !important; }
/* Only genuinely empty optional rows; real shipping/fee/discount content stays. */
.wp-block-woocommerce-checkout-order-summary-discount-block:empty,
.wp-block-woocommerce-checkout-order-summary-fee-block:empty,
.wp-block-woocommerce-checkout .slot-wrapper:has(> .wc-block-components-order-meta:empty) { display: none; }
body .wc-block-mini-cart__drawer .wc-block-cart-item__prices .price { display: block !important; white-space: pre-line !important; }
body .wc-block-mini-cart__drawer .wc-block-cart-item__prices .price > span { white-space: pre-line !important; }
body .wc-block-mini-cart__drawer .cw-vat-subtotal { font-size: 0 !important; }
body .wc-block-mini-cart__drawer .cw-vat-subtotal::after { font-size: 13px !important; }
body .wp-block-woocommerce-checkout .cw-vat-subtotal,
body .wp-block-woocommerce-cart .cw-vat-subtotal { font-size: 0 !important; }
body .wc-block-mini-cart__drawer .wc-block-cart-item__prices .price { white-space: normal !important; }
body .wc-block-mini-cart__drawer .wc-block-cart-item__prices .price[hidden] { display: none !important; }
body .wp-block-woocommerce-checkout .cw-vat-subtotal::after,
body .wp-block-woocommerce-cart .cw-vat-subtotal::after,
body .wc-block-mini-cart__drawer .cw-vat-subtotal::after { content: attr(data-cw-vat) !important; display: block !important; white-space: pre-line !important; font-size: 13px !important; }
.wc-block-components-checkout-order-summary__title-price::after { content: ' inc VAT'; font-size: 12px; font-weight: 500; }
body .wp-block-woocommerce-checkout .wc-block-components-totals-wrapper:has(> .wc-block-components-totals-footer-item),
body .wp-block-woocommerce-cart .wc-block-components-totals-wrapper:has(> .wc-block-components-totals-footer-item) { padding: 16px 20px !important; }
body .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item,
body .wp-block-woocommerce-cart .wc-block-components-totals-footer-item { padding: 0 !important; }
body .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item > .wc-block-components-totals-item__label,
body .wp-block-woocommerce-cart .wc-block-components-totals-footer-item > .wc-block-components-totals-item__label { font-family: var(--wp--preset--font-family--sans) !important; }
body .wc-block-components-totals-footer-item-tax { margin: 8px 0 0 !important; font-family: var(--wp--preset--font-family--sans) !important; }
body .wc-block-components-totals-footer-item-tax span,
body .wc-block-components-totals-footer-item-tax bdi { display: inline !important; }

body .cw-vat-shipping > * { display: none !important; }
body .cw-vat-shipping { font-size: 0 !important; }
body .cw-vat-shipping::after { content: attr(data-cw-vat) !important; display: block !important; white-space: pre-line; font-size: 12px !important; line-height: 1.6; font-weight: 500; text-align: right; }
body .wc-block-components-radio-control__secondary-label.cw-vat-shipping { flex-shrink: 0; }

/* Full cart: one price pair per single-quantity line; keep each VAT basis intact. */
body .wp-block-woocommerce-cart .cw-vat-single .wc-block-cart-item__prices { display: none !important; }
body .wp-block-woocommerce-cart .wc-block-cart-item__prices .price,
body .wp-block-woocommerce-cart .wc-block-cart-item__total .price,
body .wp-block-woocommerce-cart .wc-block-cart-item__prices .price > span,
body .wp-block-woocommerce-cart .wc-block-cart-item__total .price > span {
    white-space: pre !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.65 !important;
}
body .wp-block-woocommerce-cart .wc-block-cart-item__total { width: 172px !important; min-width: 172px; padding-left: 16px !important; }
body .wp-block-woocommerce-cart .wc-block-cart-item__product { min-width: 0; }
body .wp-block-woocommerce-cart .wc-block-components-product-name { font-size: 15px !important; line-height: 1.5 !important; }
body .wp-block-woocommerce-cart .wc-block-cart-item__quantity { margin-top: 16px !important; }
body .wp-block-woocommerce-cart .slot-wrapper:has(> .wc-block-components-order-meta:empty),
body .wp-block-woocommerce-cart .wc-block-cart__payment-options:empty,
body .wp-block-woocommerce-cart .wc-block-components-totals-footer-item-tax { display: none !important; }
body .wp-block-woocommerce-cart .wc-block-components-totals-footer-item {
    display: flex !important; flex-direction: column; align-items: stretch; gap: 8px;
}
body .wp-block-woocommerce-cart .wc-block-components-totals-footer-item > .wc-block-components-totals-item__label { font-size: 15px !important; }
body .wp-block-woocommerce-cart .wc-block-components-totals-footer-item > .wc-block-components-totals-item__value { font-size: 17px !important; white-space: pre !important; text-align: left; line-height: 1.65 !important; }
body .wp-block-woocommerce-cart .wc-block-components-totals-footer-item > .wc-block-components-totals-item__description:has(> .wc-block-components-totals-footer-item-tax) { display: none !important; }
body .wp-block-woocommerce-cart .wc-block-cart__submit { padding: 0 !important; border: 0 !important; box-shadow: none !important; background: transparent !important; margin-top: 16px !important; }
body .wp-block-woocommerce-cart .wc-block-cart__submit-container { padding: 0 !important; }
@media (max-width: 700px) {
    body .wp-block-woocommerce-cart .cw-vat-single .wc-block-cart-item__prices { display: block !important; margin-top: 8px; }
    body .wp-block-woocommerce-cart .cw-vat-single .wc-block-cart-item__total { display: none !important; }
    body .wp-block-woocommerce-cart .wc-block-cart-item__total { width: auto !important; min-width: 0; }
    body .wp-block-woocommerce-cart .wc-block-components-product-name { font-size: 14px !important; }
    body .wp-block-woocommerce-cart .wc-block-cart-item__prices .price,
    body .wp-block-woocommerce-cart .wc-block-cart-item__prices .price > span { font-size: 13px !important; }
}
body .wp-block-woocommerce-cart .wc-block-components-product-name,
body .wp-block-woocommerce-cart .wc-block-components-product-name:hover,
body .wp-block-woocommerce-cart .wc-block-components-product-name:visited { text-decoration: none !important; }
body .wp-block-woocommerce-cart .wc-block-cart-item__prices .price,
body .wp-block-woocommerce-cart .wc-block-cart-item__total .price { display: block !important; }

/* Checkout: net subtotal, aligned VAT row, then gross total. */
body .wp-block-woocommerce-checkout .wc-block-components-order-summary-item {
    border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important;
    padding: 16px 0 !important;
}
body .wp-block-woocommerce-checkout .wc-block-components-product-name { text-decoration: none !important; font-size: 14px !important; line-height: 1.5 !important; }
body .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__description { min-width: 0; }
body .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__individual-prices { margin-top: 8px !important; }

body .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item { display: grid !important; grid-template-columns: 1fr auto; align-items: center; gap: 16px; }
body .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item > .wc-block-components-totals-item__label { font-size: 16px !important; }
body .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item > .wc-block-components-totals-item__value { white-space: nowrap !important; font-size: 18px !important; line-height: 1.5 !important; text-align: right; }
body .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item > .wc-block-components-totals-item__description { grid-column: 1 / -1; grid-row: 1; margin: 0 !important; padding: 0 0 16px !important; border-bottom: 1px solid #d8e3e9; }
body .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item-tax { display: flex !important; align-items: baseline; justify-content: space-between; margin: 0 !important; font-size: 0 !important; line-height: 1.5 !important; }
body .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item-tax::before { content: 'VAT'; font: 400 14px/1.5 var(--wp--preset--font-family--sans); }
body .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item-tax > span,
body .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item-tax > span bdi,
body .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item-tax > span span { font-size: 14px !important; font-weight: 500 !important; line-height: 1.5 !important; }
body .wp-block-woocommerce-checkout .wc-block-components-checkout-order-summary__title.is-open .wc-block-components-checkout-order-summary__title-price { display: none; }
body .wp-block-woocommerce-checkout .slot-wrapper:has(> .wc-block-components-order-meta:empty) { display: none !important; }
/* Match the checkout typeface for generated VAT price labels. */
body .wp-block-woocommerce-checkout .cw-vat-shipping,
body .wp-block-woocommerce-checkout .cw-vat-shipping::after,
body .wp-block-woocommerce-checkout .cw-vat-subtotal::after,
body .wp-block-woocommerce-checkout .wc-block-components-product-price,
body .wp-block-woocommerce-checkout .wc-block-components-totals-item__value,
body .wp-block-woocommerce-checkout .wc-block-components-totals-item__value bdi {
    font-family: var(--wp--preset--font-family--sans), Arial, sans-serif !important;
}
body .wp-block-woocommerce-checkout .cw-vat-shipping::after { font-size: 14px !important; line-height: 1.5 !important; }
body .wp-block-woocommerce-checkout #shipping-option .wc-block-components-radio-control__description { font-family: var(--wp--preset--font-family--sans), Arial, sans-serif !important; font-size: 14px !important; line-height: 1.5 !important; }
body .wp-block-woocommerce-checkout .wc-block-components-order-summary { border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
body .wp-block-woocommerce-checkout .wc-block-components-order-summary-item { column-gap: 16px; padding: 8px 6px !important; }

/* Delivery options are separate cards, never shared/overlapping borders. */
body .wp-block-woocommerce-checkout #shipping-option .wc-block-components-radio-control { display: grid !important; gap: 10px !important; }
body .wp-block-woocommerce-checkout #shipping-option .wc-block-components-radio-control__option { margin: 0 !important; border: 1px solid #b9ccd9 !important; border-radius: 8px !important; box-shadow: none !important; }
body .wp-block-woocommerce-checkout #shipping-option .wc-block-components-radio-control__option:has(input:checked) { border-color: #0c2d4f !important; }
body .wp-block-woocommerce-checkout #shipping-option .wc-block-components-radio-control__option::after { display: none !important; }
@media (max-width: 360px) {
 body .wp-block-woocommerce-checkout #shipping-option .wc-block-components-radio-control__label-group { flex-direction: column !important; align-items: flex-start !important; gap: 8px; }
 body .wp-block-woocommerce-checkout #shipping-option .cw-vat-shipping::after { text-align: left !important; white-space: pre !important; }
}

/* Delivery choices retain their own borders, without an enclosing section card. */
body .wp-block-woocommerce-checkout #shipping-option { border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; }
body .wp-block-woocommerce-checkout #shipping-option::before { display: none !important; }

/* Native radio group has its own frame in addition to the checkout section. */
body .wp-block-woocommerce-checkout #shipping-option .wc-block-components-radio-control { border: 0 !important; border-radius: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; }
body .wp-block-woocommerce-checkout #shipping-option .wc-block-components-radio-control::before,
body .wp-block-woocommerce-checkout #shipping-option .wc-block-components-radio-control::after { display: none !important; }
body .wp-block-woocommerce-checkout #shipping-option .wc-block-components-radio-control__option { background: linear-gradient(135deg, #f9fcfe 0%, #fff 64%, #edf5f9 100%) !important; border-color: #d6e3ec !important; color: #183c59 !important; }
body .wp-block-woocommerce-checkout #shipping-option .wc-block-components-radio-control__option:has(input:checked) { border-color: #0c2d4f !important; background: #edf5f9 !important; }
body .wp-block-woocommerce-checkout #shipping-option input[type=radio]:focus-visible { outline: 3px solid #2875a5 !important; outline-offset: 3px; }

/* Match the address section shell; the nested radio group stays frameless. */
body .wp-block-woocommerce-checkout #shipping-option { border: 1px solid #d6e3ec !important; border-radius: 14px !important; background: linear-gradient(135deg, #f9fcfe 0%, #fff 64%, #edf5f9 100%) !important; box-shadow: 0 14px 30px rgba(12,45,79,.07) !important; padding: 28px !important; }
body .wp-block-woocommerce-checkout #shipping-option::before { display: block !important; }
body .wp-block-woocommerce-checkout #shipping-option .wc-block-components-radio-control__option { background: #fff !important; }
body .wp-block-woocommerce-checkout #shipping-option .wc-block-components-radio-control__option:has(input:checked) { background: #edf5f9 !important; }
@media(max-width:600px) { body .wp-block-woocommerce-checkout #shipping-option { padding: 22px 18px !important; } }

