/* Native WooCommerce templates and actions; theme-owned presentation and layout. */
.woocommerce-shell,
.page-content .woocommerce,
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout,
.wp-block-woocommerce-product-collection,
.wc-block-grid {
    color: var(--rv-deep);
    font-family: var(--rv-font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

/* Order confirmation: support both classic and block checkout output. */
.rv-order-received .page-shell {
    width: min(100% - 32px, 1040px);
    margin-inline: auto;
    padding-block: clamp(32px, 6vw, 72px);
}
.rv-order-received .page-content > h1 {
    margin-block: 0 24px;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.1;
}
.rv-order-received :is(.woocommerce-notice--success, .wp-block-woocommerce-order-confirmation-status) {
    border-inline-start: 3px solid var(--rv-gold);
    padding: 14px 18px;
    background: var(--rv-white);
}
.rv-order-received :is(.woocommerce-order-overview, .wc-block-order-confirmation-summary-list) {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: 1px;
    margin: 24px 0 32px;
    padding: 1px;
    background: var(--rv-line);
}
.rv-order-received :is(.woocommerce-order-overview, .wc-block-order-confirmation-summary-list) > li {
    margin: 0;
    padding: 14px 16px;
    background: var(--rv-white);
    overflow-wrap: anywhere;
}
.rv-order-received :is(.woocommerce-order-overview, .wc-block-order-confirmation-summary-list) strong {
    display: block;
    margin-top: 3px;
}
.rv-order-received :is(.woocommerce-order-details, .wp-block-woocommerce-order-confirmation-totals-wrapper) {
    margin-block: 28px;
    padding: clamp(12px, 3vw, 26px);
    border: 1px solid var(--rv-line);
    background: var(--rv-white);
}
.rv-order-received :is(.woocommerce-order-details__title, .woocommerce-column__title, .wp-block-woocommerce-order-confirmation-totals-wrapper h2) {
    margin-block: 0 16px;
    font-size: clamp(28px, 4vw, 36px);
}
.rv-order-received :is(.woocommerce-order-details, .wp-block-woocommerce-order-confirmation-totals-wrapper) table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
}
.rv-order-received :is(.woocommerce-order-details, .wp-block-woocommerce-order-confirmation-totals-wrapper) :is(th, td) {
    padding: 11px clamp(8px, 2vw, 16px);
    border-bottom: 1px solid var(--rv-line);
    text-align: start;
    vertical-align: top;
    overflow-wrap: anywhere;
}
.rv-order-received :is(.woocommerce-order-details, .wp-block-woocommerce-order-confirmation-totals-wrapper) thead {
    background: var(--rv-beige);
}
.rv-order-received .woocommerce-columns--addresses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 16px;
}
.rv-order-received :is(.woocommerce-column--billing-address, .woocommerce-column--shipping-address, .wp-block-woocommerce-order-confirmation-billing-wrapper, .wp-block-woocommerce-order-confirmation-shipping-wrapper) {
    padding: clamp(14px, 3vw, 26px);
    border: 1px solid var(--rv-line);
    background: var(--rv-white);
    overflow-wrap: anywhere;
}
.rv-order-received address {
    margin: 0;
    font-style: normal;
}
.rv-order-received address p { margin-block: 10px 0; }

/* Shared full-width Shop and single-product banner. */
.rv-shop-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1439 / 440;
    min-height: 120px;
    max-height: 560px;
    padding: 28px 16px;
    overflow: hidden;
    background: var(--rv-cream);
}

.rv-shop-hero__background {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.rv-shop-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(255, 255, 255, .25);
    pointer-events: none;
}

.rv-shop-hero h1,
.rv-shop-hero__title {
    margin: 0;
    color: var(--rv-deep);
    font-family: var(--rv-font-heading);
    font-size: var(--rv-headline-size);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: .025em;
    text-align: center;
    text-transform: uppercase;
}

.rv-product-hero .rv-shop-hero__title { max-width: min(940px, 100%); overflow-wrap: anywhere; text-transform: none; }
@media (max-width: 640px) {
    .rv-shop-hero.rv-product-hero { aspect-ratio: auto; min-height: 120px; max-height: none; padding: 24px 16px; }
    .rv-product-hero .rv-shop-hero__title { font-size: clamp(26px, 7.5vw, 34px); }
}

/* Shop and taxonomy archives retain WooCommerce queries and actions. */
.woocommerce-shell.rv-shop {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) auto;
    width: min(1160px, calc(100% - 32px));
    gap: 32px;
    padding-block: 64px var(--rv-section-space);
}
.rv-shop > :is(.page-title, .woocommerce-products-header, .term-description, .page-description, .woocommerce-notices-wrapper, .rv-shop__intro) { grid-column: 1 / -1; min-width: 0; }
.rv-shop__intro { margin-bottom: 24px; text-align: center; }
.rv-shop__eyebrow { margin: 0 0 14px; font-family: var(--rv-font-body); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.woocommerce-shell.rv-shop .rv-shop__intro h2 { margin: 0; font-size: var(--rv-section-title-size); }
.rv-shop > .page-title,
.rv-shop .woocommerce-products-header__title { margin: 0 0 16px; text-align: center; }
.rv-shop :is(.term-description, .page-description) { max-width: 720px; margin: 0 auto 16px; color: var(--rv-muted); text-align: center; }
.rv-shop .woocommerce-notices-wrapper:empty { display: none; }
.rv-shop > .woocommerce-result-count { grid-column: 1 / 3; align-self: center; margin: 0; color: var(--rv-muted); font-size: 14px; }
.rv-shop > .woocommerce-ordering { grid-column: 3; justify-self: end; margin: 0; min-width: 0; }
.rv-shop .woocommerce-ordering select { width: 240px; max-width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--rv-control-line); border-radius: 0; background: var(--rv-white); color: var(--rv-deep); font-family: var(--rv-font-body); font-size: 14px; }
.rv-shop ul.products { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; margin: 0; padding: 0; list-style: none; }
.rv-shop ul.products::before,
.rv-shop ul.products::after { content: none; }
.rv-shop ul.products li.product { position: relative; container-type: inline-size; display: flex; flex-direction: column; float: none; clear: none; width: auto; min-width: 0; margin: 0; padding: 0 0 32px; list-style: none; text-align: left; }
.rv-shop ul.products li.product .woocommerce-loop-product__link { display: flex; flex: 1; flex-direction: column; min-width: 0; color: var(--rv-deep); text-decoration: none; text-align: left; }
.rv-shop ul.products li.product .woocommerce-loop-product__link > img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; margin: 0; border: 1px solid var(--rv-line); background: var(--rv-beige); }
.rv-shop ul.products li.product .woocommerce-loop-product__title { margin: 18px 0 8px; padding: 0; overflow-wrap: anywhere; text-align: left; }
.rv-shop ul.products li.product .price { display: block; margin: auto 0 0; padding-top: 4px; font-size: 18px; line-height: 1.5; text-align: left; }
.rv-shop ul.products li.product .price del { margin-right: 8px; font-size: 15px; }
.rv-shop ul.products li.product > .button {
    position: absolute;
    top: calc(100cqw - 60px);
    left: 50%;
    z-index: 2;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: max-content;
    max-width: calc(100% - 32px);
    min-height: 44px;
    margin: 0;
    padding: 11px 20px;
    border-color: var(--rv-deep);
    background: var(--rv-deep);
    color: var(--rv-inverse);
    transform: translateX(-50%);
    text-align: center;
}
.rv-shop ul.products li.product > .button::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--rv-saffron); transform: scaleX(0); transform-origin: right center; transition: transform .3s ease; }
.woocommerce-shell.rv-shop ul.products li.product > .button:is(:hover, :focus-visible) { background: var(--rv-deep); color: var(--rv-inverse); }
.rv-shop ul.products li.product > .button:is(:hover, :focus-visible)::before { transform: scaleX(1); }
.rv-shop ul.products li.product > .button.loading { opacity: .6; cursor: progress; }
@media (hover: hover) and (pointer: fine) {
    .rv-shop ul.products li.product > .button { opacity: 0; pointer-events: none; transition: opacity .2s ease; }
    .rv-shop ul.products li.product:is(:hover, :focus-within) > .button { opacity: 1; pointer-events: auto; }
}
.rv-shop ul.products li.product > .added_to_cart { position: absolute; left: 0; bottom: 0; margin: 0; font-size: 14px; text-underline-offset: 4px; }
.rv-shop ul.products li.product .onsale { position: absolute; top: 16px; left: 16px; z-index: 1; padding: 5px 12px; border: 1px solid var(--rv-line); background: var(--rv-cream); color: var(--rv-deep); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.rv-shop .star-rating { display: none; }
.rv-shop .woocommerce-pagination { grid-column: 2 / -1; margin-top: 16px; }
.rv-shop .woocommerce-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rv-shop .woocommerce-pagination ul.page-numbers li { margin: 0; padding: 0; }
.rv-shop .woocommerce-pagination :is(a.page-numbers, span.page-numbers) { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 6px 12px; border: 1px solid var(--rv-line); text-decoration: none; }
.rv-shop .woocommerce-pagination :is(.current, a:hover) { background: var(--rv-beige); }
.rv-shop > .woocommerce-info { grid-column: 2 / -1; margin: 0; align-self: start; }

/* One native filter sidebar, reflowed rather than duplicated on mobile. */
.rv-shop__sidebar { grid-column: 1; min-width: 0; align-self: start; }
.rv-shop__filters { display: grid; gap: 20px; }
.rv-shop__filter-toggle { display: none; }
.rv-shop .rv-shop-filter { margin: 0; padding: 18px; border: 1px solid var(--rv-control-line); background: var(--rv-white); }
.woocommerce-shell.rv-shop .rv-shop-filter__title { margin: 0 0 20px; padding: 8px 12px; background: var(--rv-beige); font-family: var(--rv-font-heading); font-size: 24px; font-weight: 500; line-height: 1.3; text-align: center; }
.rv-shop-filter .product-categories { margin: 0; padding: 0; list-style: none; }
.rv-shop-filter .product-categories li { margin: 0; padding: 0; }
.rv-shop-filter .product-categories a { display: block; padding: 5px 0; color: var(--rv-deep); font-size: 16px; text-decoration: none; }
.rv-shop-filter .product-categories .children { margin: 0; padding-left: 16px; list-style: none; }
.rv-shop-filter .current-cat > a { text-decoration: underline; text-underline-offset: 4px; }
.rv-shop-filter form { margin: 0; }
.rv-shop-filter .price_slider_wrapper { padding-top: 8px; }
.rv-shop-filter .ui-slider { position: relative; height: 2px; margin: 12px 7px 24px; border: 0; background: var(--rv-line); }
.rv-shop-filter .ui-slider-range { position: absolute; top: 0; height: 100%; background: var(--rv-deep); }
.rv-shop-filter .ui-slider-handle { position: absolute; top: 50%; width: 14px; height: 14px; margin-left: -7px; border: 2px solid var(--rv-deep); border-radius: 50%; background: var(--rv-deep); cursor: ew-resize; transform: translateY(-50%); touch-action: none; }
.rv-shop-filter .price_slider_amount { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 10px; }
.rv-shop-filter .price_slider_amount input { width: calc(50% - 5px); min-width: 0; min-height: 40px; padding: 8px; border: 1px solid var(--rv-control-line); border-radius: 0; background: var(--rv-white); color: var(--rv-deep); font: inherit; font-size: 14px; }
.rv-shop-filter .price_label { flex-basis: 100%; order: -1; color: var(--rv-deep); font-size: 14px; }
.rv-shop .rv-shop-filter .button { min-height: 40px; padding: 9px 16px; cursor: pointer; }
.rv-shop .rv-shop-filter .button:hover { background: var(--rv-gold-soft); }
.rv-shop-filter .clear { display: none; }
.rv-shop-filter__reset { display: inline-block; margin-top: 16px; font-size: 13px; text-underline-offset: 4px; }

@media (max-width: 900px) {
    .woocommerce-shell.rv-shop { grid-template-columns: minmax(0, 1fr) auto; gap: 24px; }
    .rv-shop > .woocommerce-result-count { grid-column: 1; }
    .rv-shop > .woocommerce-ordering { grid-column: 2; }
    .rv-shop__sidebar,
    .rv-shop ul.products,
    .rv-shop .woocommerce-pagination,
    .rv-shop > .woocommerce-info { grid-column: 1 / -1; }
    .rv-shop__filter-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border: 1px solid var(--rv-control-line); background: var(--rv-beige); cursor: pointer; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; list-style: none; }
    .rv-shop__filter-toggle::-webkit-details-marker { display: none; }
    .rv-shop__filter-toggle::after { content: '+'; font-size: 22px; font-weight: 400; line-height: 1; }
    .rv-shop__filter-panel[open] > .rv-shop__filter-toggle::after { content: '\2212'; }
    .rv-shop__filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 16px; align-items: start; }
}
@media (max-width: 640px) {
    .rv-shop-hero { min-height: 0; padding: 18px 16px; }
    .woocommerce-shell.rv-shop { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 40px 56px; }
    .rv-shop > .page-title { margin-bottom: 8px; }
    .rv-shop > .woocommerce-ordering { justify-self: stretch; }
    .rv-shop > :is(.woocommerce-result-count, .woocommerce-ordering) { grid-column: 1; }
    .rv-shop .woocommerce-ordering select { width: 100%; }
    .rv-shop__intro { margin-bottom: 16px; }
    .rv-shop ul.products { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .rv-shop__filters { grid-template-columns: minmax(0, 1fr); }
    .rv-shop ul.products li.product > .button { opacity: 1; pointer-events: auto; }
}

/* The classic .woocommerce class also occurs on body; scope inside content. */
:is(.woocommerce-shell, .page-content .woocommerce) :is(h2, h3),
:is(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout) :is(.wc-block-components-title, .wc-block-components-checkout-step__title) {
    color: var(--rv-deep);
    font-family: var(--rv-font-heading);
    font-size: var(--rv-section-title-size);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
}

.woocommerce-shell ul.products li.product .woocommerce-loop-product__title,
.woocommerce-shell div.product .product_title,
.page-content .woocommerce ul.products li.product .woocommerce-loop-product__title,
.wp-block-woocommerce-product-collection .wp-block-post-title,
.wp-block-woocommerce-product-title,
.wc-block-grid .wc-block-grid__product-title {
    color: var(--rv-deep);
    font-family: var(--rv-font-heading);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
}

:is(.woocommerce-shell, .page-content .woocommerce) :is(p, li, td, th, label, legend, .woocommerce-result-count, .product_meta),
.wc-block-components-product-name,
.wc-block-components-product-metadata,
.wc-block-components-product-price,
.wc-block-components-formatted-money-amount,
.wc-block-components-totals-item,
.wc-block-components-checkout-step__description {
    font-family: var(--rv-font-body);
}

:is(.woocommerce-shell, .page-content .woocommerce) :is(.price, p.price, span.price),
.woocommerce-shell div.product :is(p.price, span.price),
.wc-block-components-product-price,
.wc-block-components-formatted-money-amount {
    color: var(--rv-deep);
    font-weight: 400;
}

:is(.woocommerce-shell, .page-content .woocommerce) .price del,
.wc-block-components-product-price del,
.wc-block-components-product-metadata,
.wc-block-components-checkout-step__description {
    color: var(--rv-muted);
}

:is(.woocommerce-shell, .page-content .woocommerce) .price ins,
.wc-block-components-product-price ins {
    color: var(--rv-deep);
    background: transparent;
    text-decoration: none;
}

:is(.woocommerce-shell, .page-content .woocommerce) :is(.button, .single_add_to_cart_button, .checkout-button, [id="place_order"]),
:is(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout, .wp-block-woocommerce-product-collection, .wc-block-grid) :is(.wc-block-components-button, .wp-block-button__link),
.wp-block-woocommerce-product-button .wp-block-button__link {
    border: 1px solid var(--rv-deep);
    border-radius: 0;
    background: transparent;
    color: var(--rv-deep);
    box-shadow: none;
    font-family: var(--rv-font-body);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

:is(.woocommerce-shell, .page-content .woocommerce):not(.rv-shop) :is(.button, .single_add_to_cart_button, .checkout-button, [id="place_order"]):not(:disabled):not(.disabled):hover,
:is(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout, .wp-block-woocommerce-product-collection, .wc-block-grid) :is(.wc-block-components-button, .wp-block-button__link):not(:disabled):not([aria-disabled="true"]):hover,
.wp-block-woocommerce-product-button .wp-block-button__link:not([aria-disabled="true"]):hover {
    border-color: var(--rv-deep);
    background: var(--rv-gold-soft);
    color: var(--rv-deep);
    box-shadow: none;
}

:is(.woocommerce-shell, .page-content .woocommerce) :is(.button, .single_add_to_cart_button, .checkout-button, [id="place_order"]):focus-visible,
:is(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout, .wp-block-woocommerce-product-collection, .wc-block-grid) :is(.wc-block-components-button, .wp-block-button__link):focus-visible {
    outline: 2px solid var(--rv-control-line);
    outline-offset: 3px;
}

.wc-block-components-button .wc-block-components-button__text {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
}

:is(.woocommerce-shell, .page-content .woocommerce) :is(.woocommerce-tabs .tabs a, .woocommerce-MyAccount-navigation a, .woocommerce-pagination a, .woocommerce-pagination span),
.wp-block-woocommerce-product-collection .wp-block-query-pagination {
    color: var(--rv-deep);
    font-family: var(--rv-font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .04em;
}

:is(.woocommerce-shell, .page-content .woocommerce) :is(input.input-text, textarea, select, .quantity .qty),
:is(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout) :is(.wc-block-components-text-input:not(.has-error) input, .wc-block-components-textarea, .wc-block-components-select select, .components-combobox-control__input):not([aria-invalid="true"]) {
    border-color: var(--rv-control-line);
    border-radius: 0;
    background-color: var(--rv-white);
    color: var(--rv-deep);
    font-family: var(--rv-font-body);
    font-size: 16px;
    font-weight: 400;
}

:is(.woocommerce-shell, .page-content .woocommerce) :is(input.input-text, textarea, select, .quantity .qty):focus-visible,
:is(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout) :is(.wc-block-components-text-input input, .wc-block-components-textarea, .wc-block-components-select select, .components-combobox-control__input):focus-visible {
    border-color: var(--rv-control-line);
    outline: 2px solid var(--rv-control-line);
    outline-offset: 2px;
}

:is(.woocommerce-shell, .page-content .woocommerce) :is(input, textarea)::placeholder {
    color: var(--rv-muted);
    opacity: 1;
}

:is(.woocommerce-shell, .page-content .woocommerce) :is(input[type="checkbox"], input[type="radio"]) {
    accent-color: var(--rv-deep);
}

:is(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout) :is(.wc-block-components-text-input label, .wc-block-components-select__label, .wc-block-components-checkbox__label, .wc-block-components-radio-control__label) {
    color: var(--rv-deep);
    font-family: var(--rv-font-body);
    font-weight: 400;
}

:is(.woocommerce-shell, .page-content .woocommerce) .select2-container--default .select2-selection--single {
    border-color: var(--rv-control-line);
    border-radius: 0;
    background: var(--rv-white);
    color: var(--rv-deep);
    font-family: var(--rv-font-body);
    font-size: 16px;
}

:is(.woocommerce-shell, .page-content .woocommerce) .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--rv-deep);
}

body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) > .select2-container .select2-dropdown {
    border-color: var(--rv-control-line);
    border-radius: 0;
    background: var(--rv-white);
    color: var(--rv-deep);
    font-family: var(--rv-font-body);
    font-size: 16px;
}

body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) > .select2-container .select2-results__option--highlighted[aria-selected] {
    background: var(--rv-beige);
    color: var(--rv-deep);
}

:is(.woocommerce-shell, .page-content .woocommerce) :is(table.shop_table, table.shop_table td, table.shop_table th, .cart_totals, .woocommerce-checkout-review-order, .woocommerce-billing-fields, .woocommerce-shipping-fields, .woocommerce-additional-fields),
:is(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout) :is(.wc-block-cart-items, .wc-block-cart-items__row, .wc-block-components-totals-wrapper, .wc-block-components-order-summary, .wc-block-components-panel) {
    border-color: var(--rv-line);
}

:is(.woocommerce-shell, .page-content .woocommerce) :is(.cart_totals, .woocommerce-checkout-review-order),
.wp-block-woocommerce-checkout .wc-block-components-order-summary {
    background-color: var(--rv-white);
    color: var(--rv-deep);
}

:is(.woocommerce-shell, .page-content .woocommerce) #payment,
:is(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout) .wc-block-components-radio-control-accordion-option {
    border-color: var(--rv-line);
    background: var(--rv-white);
    color: var(--rv-deep);
}

:is(.woocommerce-shell, .page-content .woocommerce) #payment div.payment_box,
.wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-content {
    background: var(--rv-beige);
    color: var(--rv-deep);
    font-family: var(--rv-font-body);
    font-size: 16px;
}

:is(.woocommerce-shell, .page-content .woocommerce) #payment div.payment_box::before {
    border-bottom-color: var(--rv-beige);
}

:is(.woocommerce-shell, .page-content .woocommerce) :is(.woocommerce-message, .woocommerce-info, .woocommerce-error),
.wc-block-components-notice-banner {
    font-family: var(--rv-font-body);
    font-size: 16px;
    font-weight: 400;
}

:is(.woocommerce-shell, .page-content .woocommerce) :is(.woocommerce-message, .woocommerce-info) {
    border: 1px solid var(--rv-line);
    border-left: 3px solid var(--rv-gold);
    background: var(--rv-beige);
    color: var(--rv-deep);
}

.wc-block-components-notice-banner:not(.is-error):not(.is-warning) {
    border-color: var(--rv-line);
    background: var(--rv-beige);
    color: var(--rv-deep);
}

/* Error/warning colors, icons, and validation states remain WooCommerce-owned. */
.wp-block-woocommerce-cart .wc-block-cart__submit-container {
    background-color: var(--rv-cream);
}

.wp-block-woocommerce-cart .wc-block-cart__submit-container::before {
    color: var(--rv-line);
}

.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__quantity {
    border-color: var(--rv-deep);
    background: var(--rv-cream);
    color: var(--rv-deep);
    box-shadow: 0 0 0 2px var(--rv-cream);
    font-family: var(--rv-font-body);
}

.wc-block-components-quantity-selector {
    border-color: var(--rv-control-line);
    border-radius: 0;
    background: var(--rv-white);
    color: var(--rv-deep);
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__input {
    color: var(--rv-deep);
    font-family: var(--rv-font-body);
    font-size: 16px;
    font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
    .rv-shop ul.products li.product > .button::before,
    :is(.woocommerce-shell, .page-content .woocommerce) :is(.button, .single_add_to_cart_button, .checkout-button, [id="place_order"]),
    :is(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout, .wp-block-woocommerce-product-collection, .wc-block-grid) :is(.wc-block-components-button, .wp-block-button__link) {
        transition: none;
    }
}
