/* Shared Avada colours and type keep the Woo journey consistent with the homepage. */
body.g28x-site .g28x-section.g28x-topbar {
    background: var(--awb-color5, #0073c6) !important;
}
body .g28x-topbar :is(.fusion-text, p, span, a) { color: white !important; }
body .g28x-topbar a:hover { text-decoration: underline; }
body .g28x-topbar a:focus-visible { outline: 2px solid white; outline-offset: 3px; }

.rmck-shop-hero, body.woocommerce-cart .rmck-empty {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr);
    align-items: stretch;
    overflow: hidden;
}
.rmck-shop-copy, .rmck-empty-copy {
    align-self: center;
    padding: clamp(24px, 3.5vw, 55px) clamp(18px, 3vw, 48px) clamp(24px, 3.5vw, 55px) 0;
}
body .rmck-shop-copy h1, body .rmck-empty h1 {
    margin: 0 0 12px;
    max-width: 17ch;
    font-size: clamp(32px, 3.5vw, 54px);
    line-height: 1.06;
    letter-spacing: -.035em;
    color: var(--awb-color8);
}
.rmck-shop-copy > p, .rmck-empty-copy > p { max-width: 45ch; margin: 0 0 22px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; color: #415c70; }
.rmck-shop-photo, .rmck-empty-photo { position: relative; min-height: 195px; overflow: hidden; border-radius: 8px; }
.rmck-shop-photo img, .rmck-empty-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rmck-shop-nav, .rmck-empty-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rmck-shop-nav a, .rmck-empty-links a {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    border: 1px solid #acc4d4; background: white; color: #184360; border-radius: 6px;
    min-height: 42px; padding: 8px 16px; font-size: 15px; font-weight: 650; line-height: 1.3;
}
.rmck-shop-nav a[aria-current], .rmck-empty-links a:first-child { background: var(--awb-color5); color: white; border-color: var(--awb-color5); }
.rmck-shop-nav a:hover, .rmck-empty-links a:hover { background: #143952; border-color: #143952; color: white; }
body .g28x-catalogue .products li.product .fusion-product-wrapper {
    height: 100%; display: flex; flex-direction: column; background: white; border: 1px solid #d5e3ec; border-radius: 9px; overflow: hidden;
}
body .g28x-catalogue .products li.product .product-images { background: white; padding: 12px; }
body .g28x-catalogue .products li.product .product-images img { width: 100%; height: clamp(138px, 14vw, 208px); object-fit: contain; }
body .g28x-catalogue .products li.product .fusion-product-content { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; border-top: 1px solid #e6eef3; }
body .g28x-catalogue .products li.product .product-title { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.22; margin: 0 0 7px; }
body .g28x-catalogue .products li.product .product-buttons { margin: auto 0 0; padding-top: 12px; }
body .g28x-catalogue .products li.product .product-buttons-container { display: flex; gap: 8px 14px; align-items: center; justify-content: flex-start; flex-wrap: wrap; }
body .g28x-catalogue .products li.product .product-buttons a { font-size: 14px; font-weight: 650; color: var(--awb-color5); }
body .g28x-catalogue .products .product_cat-key-repairs:has(.rmck-choose) .show_details_button { display: none; }
.rmck-choose span { margin-left: 6px; }
body.woocommerce-cart:has(.rmck-empty) .g28x-checkout-progress,
body.woocommerce-cart .g28x-basket:has(.rmck-empty) :is(.fusion-title, .g28x-lead),
body.woocommerce-cart .rmck-empty ~ .return-to-shop,
body.woocommerce-cart .rmck-empty::before { display: none !important; }
body.woocommerce-cart .rmck-empty { background: #eff7fc; border: 1px solid #d4e4ee; padding: 0; border-radius: 12px; margin: clamp(10px,2vw,30px) 0; text-align: left; }
.rmck-empty-copy { padding: clamp(24px, 4vw, 64px); }
.rmck-empty-photo { border-radius: 0; min-height: 280px; }
.rmck-empty-photo img { object-position: 50% 65%; }

/* Avada wraps everything emitted before the button in a horizontal flex row. */
body form.cart .fusion-button-wrapper:has(> .rmck-case-offer) {
    display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 16px; width: 100%;
}
body form.cart .fusion-button-wrapper:has(> .rmck-case-offer) > .quantity:has(input[type=hidden]) { display: none !important; }
body form.cart .fusion-button-wrapper:has(> .rmck-case-offer) > button.single_add_to_cart_button {
    align-self: flex-start; width: auto !important; min-width: min(240px,100%); max-width: 100%; flex: none; margin: 0 !important;
}
body .rmck-case-offer {
    width: 100%; box-sizing: border-box; margin: 12px 0; padding: 0; border: 1px solid #cadde9; border-radius: 9px; background: #f3f8fc;
}
body .rmck-case-offer details { margin: 0; }
body .rmck-case-offer summary {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; list-style: none;
    padding: 15px 20px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.3; color: #102a40;
}
.rmck-case-offer summary::-webkit-details-marker { display: none; }
.rmck-case-offer summary::after { content: '+'; flex: none; width: 28px; line-height: 28px; text-align: center; border-radius: 50%; color: #0065a7; background: #e0edf5; }
.rmck-case-offer details[open] summary::after { content: '−'; }
body .rmck-case-offer .rmck-fit-note { margin: 0 20px 12px; font-size: 15px; line-height: 1.45; color: #425d70; }
body .rmck-case-offer details > label, body .rmck-case-grid article > label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; line-height: 1.35; cursor: pointer; }
body .rmck-case-offer details > label { margin: 0 20px 12px; min-height: 32px; }
body .rmck-case-offer input[type=radio] { accent-color: var(--awb-color5); width: 17px; height: 17px; margin: 0; flex: none; }
body .rmck-case-offer .rmck-case-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 10px; padding: 0 20px 18px; }
body .rmck-case-grid article {
    display: grid; grid-template-columns: minmax(66px,28%) minmax(0,1fr); grid-template-rows: auto auto 1fr; gap: 3px 12px;
    align-items: center; align-content: center; max-width: none; min-width: 0; padding: 12px;
    border: 1px solid #d4e1ea; border-radius: 7px; background: white;
}
body .rmck-case-grid article:has(input:checked) { border-color: var(--awb-color5); box-shadow: inset 0 0 0 1px var(--awb-color5); }
body .rmck-case-grid article > a { display: contents; }
body .rmck-case-grid article > a img { grid-column: 1; grid-row: 1 / 4; width: 100%; height: 95px; margin: 0; object-fit: contain; }
body .rmck-case-grid article > a span { grid-column: 2; font-size: 16px; line-height: 1.25; color: #102e46; }
body .rmck-case-grid article > a:hover span { text-decoration: underline; }
body .rmck-case-grid article > :is(span,label,button) { grid-column: 2; margin: 0; }
body .rmck-case-grid article > span { font-size: 15px; line-height: 1.3; color: #365368; }
body .rmck-case-grid article > label { min-height: 32px; }
body .rmck-case-grid article > button { justify-self: start; min-height: 36px; padding: 6px 14px; }
body .rmck-case-status:not(:empty) { margin: 0 20px 16px; }
body .rmck-case-grid article:focus-within, .rmck-case-offer summary:focus-visible { outline: 2px solid #006eb5; outline-offset: 2px; }

body .g28-checkout .g28-grid:has(input[name="g28_faults[]"]) {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin: 0;
}
body .g28-checkout .g28-grid label.g28-check:has(input[name="g28_faults[]"]) {
    display: flex; align-items: center; gap: 10px; margin: 0 !important; padding: 9px 12px; min-height: 44px;
    float: none; width: 100%; box-sizing: border-box; background: white; border: 1px solid #cbdde8; border-radius: 6px;
    font-size: 15px; font-weight: 550; line-height: 1.3; color: #14334a; cursor: pointer;
}
body .g28-checkout .g28-grid label.g28-check:has(input:checked) { background: #eaf5fc; border-color: #0073c6; }
body .g28-checkout .g28-grid input[name="g28_faults[]"] { flex: none; width: 17px; height: 17px; margin: 0; accent-color: #0073c6; }
.g28-checkout .g28-grid label:focus-within { outline: 2px solid #006eb5; outline-offset: 2px; }
@media (max-width: 680px) {
    .rmck-shop-hero, body.woocommerce-cart .rmck-empty { grid-template-columns: 1fr; }
    .rmck-shop-copy { padding: 0 0 20px; }
    .rmck-shop-photo { min-height: 145px; }
    .rmck-empty-photo { min-height: 155px; }
    .rmck-empty-links { align-items: stretch; }
    .rmck-shop-nav a { padding-inline: 11px; font-size: 14px; }
    body .rmck-case-offer summary { padding: 14px; }
    body .rmck-case-offer .rmck-fit-note, body .rmck-case-offer details > label { margin-inline: 14px; }
    body .rmck-case-offer .rmck-case-grid { grid-template-columns: 1fr; padding: 0 14px 14px; }
    body form.cart .fusion-button-wrapper:has(> .rmck-case-offer) > button.single_add_to_cart_button { width: 100% !important; }
    body .g28-checkout .g28-grid:has(input[name="g28_faults[]"]) { grid-template-columns: 1fr; gap: 6px; }
    body .g28x-catalogue .products li.product .fusion-product-content { padding: 12px; }
}

/* The Avada basket notice has a fixed height and width intended for one line. */
body.woocommerce-cart .g28x-basket .woocommerce > section.rmck-empty {
    display: grid !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: normal !important;
}
body.woocommerce-cart .g28x-basket .woocommerce:has(> .rmck-empty) { display: block; }
body form.cart:has(.rmck-case-offer) { margin-bottom: 14px !important; }
body .g28-checkout fieldset:has(input[name="g28_faults[]"]) legend { margin-bottom: 8px; }
@media (max-width: 420px) {
    .rmck-shop-nav { gap: 5px; }
    .rmck-shop-nav a { padding-inline: 8px; }
}

body .rmck-case-grid article > button.g28-button {
    appearance: none; border: 1px solid #0073c6; background: #fff; color: #0062a7; border-radius: 5px;
    min-height: 38px; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer;
}
body .rmck-case-grid article > button.g28-button:hover:enabled { background: #0067ae; color: white; }
body .rmck-case-grid article > button.g28-button:disabled { background: #edf4f8; border-color: #c7d9e4; color: #415c70; cursor: default; }

/* The live order table stays inside the checkout form for WooCommerce updates. */
body.g28x-site .g28x-checkout #order_review .rmck-order-summary {
    grid-column: 2; grid-row: 1 / span 2; align-self: start; min-width: 0;
    border: 1px solid #d3e2ec; border-radius: 8px; background: #fff;
    padding: clamp(16px, 1.7vw, 24px);
}
body.g28x-site .g28x-checkout .rmck-order-summary #order_review_heading {
    margin: 0 0 14px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important;
}
body.g28x-site .g28x-checkout #order_review .rmck-order-summary > table.shop_table {
    display: block !important; width: 100% !important; padding: 0 !important; margin: 0 !important; border: 0 !important; height: auto !important;
}
body.g28x-site .g28x-checkout .rmck-order-summary > table > :is(tbody,tfoot) { display:block; width:100%; }
body.g28x-site .g28x-checkout #order_review .rmck-order-summary table.shop_table tr.cart_item {
    display: grid !important; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center;
    padding: 10px 0; border-bottom: 1px solid #dce7ee;
}
body.g28x-site .g28x-checkout #order_review .rmck-order-summary tr.cart_item td:is(.product-name,.product-total) {
    padding: 0 !important; border: 0 !important; font-size: 16px !important; line-height: 1.35;
}
body.g28x-site .g28x-checkout #order_review .rmck-order-summary .fusion-product-name-wrapper {
    display: flex !important; align-items: center; gap: 12px;
}
body.g28x-site .g28x-checkout #order_review .rmck-order-summary .product-thumbnail {
    width: 56px !important; min-width: 56px !important; max-width: 56px !important; flex: none;
}
body.g28x-site .g28x-checkout #order_review .rmck-order-summary td.product-name .product-thumbnail a { margin: 0 !important; }
body.g28x-site .g28x-checkout #order_review .rmck-order-summary table.shop_table td.product-name .product-thumbnail img {
    width: 56px !important; height: 56px !important; object-fit: contain !important;
}
body.g28x-site .g28x-checkout #order_review .rmck-order-summary .product-info {
    margin: 0 !important; width: auto !important; min-width: 0; font-size: 16px; line-height: 1.35;
}
body.g28x-site .g28x-checkout .rmck-order-summary .product-info dl.variation { margin: 4px 0 0; font-size: 14px; line-height: 1.3; }
body.g28x-site .g28x-checkout .rmck-order-summary .product-info dl.variation :is(dd,p) { margin: 0; }
body .g28-checkout > .rmck-case-offer { margin: 0 0 20px; }
@media (min-width: 1025px) {
    body.g28x-site .g28x-checkout #order_review .rmck-order-summary.rmck-fits {
        position: sticky; top: var(--rmck-summary-top, 40px);
    }
}
@media (max-width: 800px) {
    body.g28x-site .g28x-checkout #order_review .rmck-order-summary { margin: 16px 0; }
}

body.g28x-site .g28-checkout .rmck-case-offer .rmck-case-grid article > button.g28-button {
    color: #0062a7 !important; min-height: 44px;
}
body.g28x-site .g28-checkout .rmck-case-offer .rmck-case-grid article > button.g28-button:hover:enabled {
    background: #0067ae !important; color: white !important;
}
body.g28x-site .g28-checkout .rmck-case-offer .rmck-case-grid article > button.g28-button:disabled {
    opacity: 1; color: #415c70 !important; background: #edf4f8 !important;
}
body.g28x-site .g28x-checkout #order_review .rmck-order-summary > .shop_table > thead { display: block; width: 100%; }
body.g28x-site .g28x-checkout #order_review .rmck-order-summary > .shop_table > thead > tr {
    display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid #dce7ee;
}
body.g28x-site .g28x-checkout .rmck-order-summary > .shop_table > thead th { border: 0; padding: 0 0 8px; }
body.g28x-site .g28x-checkout .rmck-order-summary .variation dt { margin-right: .3em; }
body.g28x-site .g28x-checkout #order_review .rmck-order-summary .awb-cart-totals-table th { text-align: left !important; }

/* Keep related labels close and let field groups supply the vertical rhythm. */
body.home .g28x-finder-card > .fusion-column-wrapper {
    padding: clamp(20px, 2.3vw, 32px) !important; gap: 16px;
}
body.home .g28x-finder-card > .fusion-column-wrapper > :is(.fusion-title,.fusion-text),
body.home .g28x-finder-card .fusion-text > p { margin: 0 !important; }
body.home .g28x-finder-card .g28-selector {
    display: flex; flex-direction: column; gap: 12px; padding: 0; margin: 0;
}
body.home .g28x-finder-card .g28-selector > :is(.g28-field,.g28-feedback,.g28-repair-routes),
body.home .g28x-finder-card .g28-selector .g28-repair-routes a { margin: 0 !important; }
body.home .g28x-finder-card .g28-selector .g28-repair-routes { padding: 0; }
body.home .g28x-finder-card .g28-selector :is(.g28-feedback,.g28-repair-routes):empty {
    position: absolute; min-height: 0; height: 0; margin: 0; padding: 0; overflow: hidden;
}
body.home .g28x-finder-card .g28x-or { margin: 0 0 8px !important; }
/* Shared registration controls for the finder, repair products and checkout. */
body.g28x-site :is(.g28-selector, .g28-checkout) .g28-reg-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
}
body.g28x-site :is(.g28-selector, .g28-checkout) .g28-reg-row > :is(input, button) {
    box-sizing: border-box;
    min-width: 0;
    min-height: 48px;
    height: 48px;
    margin: 0;
}
body.g28x-site :is(.g28-selector, .g28-checkout) .g28-reg-row > input {
    flex: 1 1 0;
    padding-inline: 14px !important;
    border: 1px solid #d2e0ea !important;
    border-radius: 6px !important;
    background-color: #fff;
}
body.g28x-site :is(.g28-selector, .g28-checkout) .g28-reg-row > input:focus-visible {
    outline: 2px solid #0073c6;
    outline-offset: 2px;
}
body.g28x-site :is(.g28-selector, .g28-checkout) .g28-field:has(> .g28-reg-row) > label {
    display: block;
    margin: 0 0 8px !important;
}
.g28-selector > :is(.g28-feedback, [data-g28-vehicle-result], .g28-repair-routes):empty {
    margin: 0;
    padding: 0;
    min-height: 0;
}
@media (max-width: 480px) {
    body.g28x-site :is(.g28-selector, .g28-checkout) .g28-reg-row { flex-direction: column; }
    body.g28x-site :is(.g28-selector, .g28-checkout) .g28-reg-row > :is(input, button) {
        width: 100%;
        flex: 0 0 auto;
    }
}

/* Use Avada's stretched row and let both card surfaces fill their columns. */
.g28-tracking-support .g28-panel > .fusion-column-wrapper {
    box-sizing: border-box;
    border-radius: 6px;
    border: 1px solid var(--awb-color3);
    align-self: stretch;
}
@media (min-width: 641px) {
    .g28-tracking-support .fusion-builder-row { align-items: stretch; }
    .g28-tracking-support .g28-panel { display: flex; flex-direction: column; }
    .g28-tracking-support .g28-panel > .fusion-column-wrapper { flex: 1 1 auto; }
}

body.g28x-site .g28x-checkout section.g28-checkout { display: flex; flex-direction: column; gap: 18px; }
body.g28x-site .g28x-checkout section.g28-checkout > :is(.g28-heading,.g28-muted,.g28-field,.g28-feedback,.g28-check,.g28-vehicle-result,.g28-fieldset,.g28-upload,.rmck-case-offer,.g28-disclaimer,.g28-repair-routes) {
    margin-block: 0 !important; min-width: 0;
}
body.g28x-site .g28x-checkout section.g28-checkout > .g28-repair-routes:empty { display:none; }
body.g28x-site .g28x-checkout .g28-fieldset > legend { margin: 0 0 8px !important; }
body.g28x-site .g28x-checkout .g28-checkout .g28-fieldset > .g28-muted { margin: 0 0 12px; }
body.g28x-site .g28x-checkout .g28-checkout .g28-upload > .g28-muted { margin: 6px 0 12px; }
body.g28x-site .g28x-checkout .g28-checkout .g28-feedback { margin: 8px 0 0; }
body.g28x-site .g28x-checkout .g28-checkout .g28-feedback:empty { min-height: 0; height: 0; margin: 0; }
body.g28x-site .g28x-checkout :is(.g28x-billing-group,.woocommerce-shipping-fields,.woocommerce-additional-fields) h3 { margin: 0 0 12px !important; padding-bottom: 0 !important; border-bottom: 0; }
body.g28x-site .g28x-checkout .g28x-billing-group > p { margin: 0 0 16px !important; }
body.g28x-site .g28x-checkout :is(.g28x-billing-group,.shipping_address,.woocommerce-additional-fields,.create-account) .form-row { margin-block: 0 16px !important; }
body.g28x-site .g28x-checkout :is(.g28x-billing-group,.shipping_address,.woocommerce-additional-fields,.create-account) .form-row:last-child { margin-bottom: 0 !important; }
body.g28x-site .g28x-checkout .form-row > label:not(.screen-reader-text,.checkbox,.woocommerce-form__label-for-checkbox) { margin-block: 0 8px !important; }
body.g28x-site .g28x-checkout #ship-to-different-address:has(input:not(:checked)) { margin-bottom: 0 !important; }
body.g28x-site .g28x-checkout #order_review > .g28x-payment-heading {
    margin: 0 !important; padding: 0 !important; border: 0 !important;
}
body.g28x-site .g28x-checkout #order_review > .g28x-payment-heading + p { margin: 0 !important; }
body.g28x-site .g28x-checkout #order_review > #payment { margin: 0 !important; padding: clamp(16px,2vw,24px) !important; }
body.g28x-site .g28x-checkout #payment ul.wc_payment_methods { margin: 0 !important; padding: 0 !important; }
body.g28x-site .g28x-checkout #payment li.wc_payment_method { margin: 0 !important; }
body.g28x-site .g28x-checkout #payment li.wc_payment_method + li { margin-top: 16px !important; }
body.g28x-site .g28x-checkout #payment .payment_box { margin: 12px 0 0 !important; padding: 16px !important; }
body.g28x-site .g28x-checkout #payment .place-order { margin: 16px 0 0 !important; padding: 0 !important; }
@media (min-width: 801px) {
    body.g28x-site .g28x-checkout form.checkout { row-gap: 14px !important; }
    body.g28x-site .g28x-checkout #order_review > .g28x-payment-heading { grid-row: 2; margin-top: 6px !important; }
    body.g28x-site .g28x-checkout #order_review > .g28x-payment-heading + p { grid-row: 3; grid-column: 1; }
    body.g28x-site .g28x-checkout #order_review > #payment { grid-row: 4; grid-column: 1; }
    body.g28x-site .g28x-checkout #order_review .rmck-order-summary { grid-row: 1 / span 4; }
}
@media (max-width: 800px) {
    body.g28x-site .g28x-checkout #order_review > .g28x-payment-heading { margin-top: 20px !important; }
    body.g28x-site .g28x-checkout #order_review > .g28x-payment-heading + p { margin: 10px 0 14px !important; }
}
@media (max-width: 600px) {
    body.g28x-site .g28x-checkout :is(.g28x-billing-group,.shipping_address) :is(.form-row-first,.form-row-last) {
        width: 100% !important; float: none !important; margin-inline: 0 !important;
    }
}

/* WooCommerce may return plain text, a list, or an Avada action inside the same notice. */
body.g28x-site .woocommerce .wc-block-components-notice-banner:has(.restore-item),
body.g28x-site .woocommerce-notices-wrapper .wc-block-components-notice-banner {
    display: grid !important; grid-template-columns: 32px minmax(0,1fr);
    align-items: center; column-gap: 12px; row-gap: 8px;
}
body.g28x-site .wc-block-components-notice-banner::before { display: none !important; }
body.g28x-site .wc-block-components-notice-banner > svg {
    grid-column: 1; align-self: start; width: 32px; height: 32px; padding: 6px;
}
body.g28x-site .wc-block-components-notice-banner > .wc-block-components-notice-banner__content {
    grid-column: 2; min-width: 0; display: block !important; overflow-wrap: anywhere;
}
body.g28x-site .wc-block-components-notice-banner__content:has(.wc-forward) {
    display: flex !important; align-items: center; flex-wrap: wrap; gap: 10px 16px;
}
body.g28x-site .wc-block-components-notice-banner__content .restore-item {
    display: inline-block; margin-inline-start: 6px; font-weight: 650; text-decoration: underline; color: #005c99;
}
body.g28x-site .wc-block-components-notice-banner.is-error { color:#68242b; }
body.g28x-site .g28 .g28-feedback[data-error="true"]:not(:empty) {
    color: #80242b; background: #fff4f3; border-inline-start: 3px solid #b33940;
    border-radius: 4px; padding: 9px 12px; font-size: 15px; line-height: 1.45;
}
body.g28x-site .g28 .rmck-case-status:not(:empty), body.g28x-site .rmck-case-offer .rmck-case-status:not(:empty) {
    color: #183e57; font-size: 15px; line-height: 1.4; font-weight: 600;
}
@media(max-width: 767px) {
    body.g28x-site .wc-block-components-notice-banner__content .wc-forward { order: 2; }
    body.g28x-site .wc-block-components-notice-banner__content .wc-notices-text { order: 1; }
}
@media(max-width: 350px) {
    body.g28x-site, body.g28x-site :is(#boxed-wrapper,#wrapper,#main) { min-width: 0 !important; }
}

body.g28x-site #wrapper .wc-block-components-notice-banner:has(.restore-item) > .wc-block-components-notice-banner__content {
    display: block !important; grid-column: 2; align-self: center; min-width: 0;
}
body.g28x-site #wrapper .wc-block-components-notice-banner .restore-item {
    width: auto !important; white-space: nowrap; display: inline-block !important;
}

/* The menu already has Avada item margins. Use one source of desktop spacing. */
.g28x-header .awb-menu_desktop > .awb-menu__main-ul {
    flex-wrap: nowrap;
    align-items: center;
    gap: clamp(12px, 1.65vw, 26px) !important;
}
.g28x-header .awb-menu_desktop > .awb-menu__main-ul > li {
    flex-shrink: 0;
    margin-inline: 0 !important;
}
.g28x-header .awb-menu_desktop > .awb-menu__main-ul > li > a { white-space: nowrap; }

/* Keep the native accordion state icons legible against their hover surface. */
body.g28x-site .g28x-accordion .panel-title > a:is(:hover, :focus-visible, [aria-expanded="true"]) {
    background-color: #eef8fd;
    color: #071c2e !important;
}
body.g28x-site .g28x-accordion .panel-title > a .fusion-toggle-icon-wrapper .fa-fusion-box {
    background-color: transparent !important;
    color: #0068af !important;
}
body.g28x-site .g28x-accordion .panel-title > a .fusion-toggle-icon-wrapper .fa-fusion-box::before {
    color: inherit !important;
}
body.g28x-site .g28x-accordion .panel-title > a:focus-visible {
    outline: 2px solid #0068af !important;
    outline-offset: -3px;
}

/* Repair and case listings share the same card and action styles. */
.g28x-catalogue .products li:is(.product_cat-protective-key-cases, .product_cat-key-repairs:has(.rmck-choose)) {
    --case-accent: #0068af;
    --case-border: #d7e3ed;
    --case-surface: #eef8fd;
}
body :is(.g28x-catalogue, .rmck-product-page .related) .products li:is(.product_cat-protective-key-cases, .product_cat-key-repairs:has(.rmck-choose)) .fusion-product-wrapper {
    border-color: var(--case-border);
    border-radius: 8px;
}
body :is(.g28x-catalogue, .rmck-product-page .related) .products li:is(.product_cat-protective-key-cases, .product_cat-key-repairs:has(.rmck-choose)) .fusion-product-wrapper:is(:hover, :focus-within) {
    border-color: #88b6d2;
    box-shadow: 0 4px 14px rgba(7, 28, 46, .08);
}
body :is(.g28x-catalogue, .rmck-product-page .related) .products li:is(.product_cat-protective-key-cases, .product_cat-key-repairs:has(.rmck-choose)) .product-images {
    padding: clamp(8px, 1.1vw, 16px);
    background: #f6fafc;
}
body :is(.g28x-catalogue, .rmck-product-page .related) .products li:is(.product_cat-protective-key-cases, .product_cat-key-repairs:has(.rmck-choose)) .product-images img {
    width: 100%;
    height: clamp(118px, 18vw, 248px);
    object-fit: contain;
}
body :is(.g28x-catalogue, .rmck-product-page .related) .products li:is(.product_cat-protective-key-cases, .product_cat-key-repairs:has(.rmck-choose)) .fusion-product-content {
    padding: clamp(12px, 1.4vw, 20px);
    gap: 12px;
}
body :is(.g28x-catalogue, .rmck-product-page .related) .products li:is(.product_cat-protective-key-cases, .product_cat-key-repairs:has(.rmck-choose)) .product-details {
    padding: 0;
}
body :is(.g28x-catalogue, .rmck-product-page .related) .products li:is(.product_cat-protective-key-cases, .product_cat-key-repairs:has(.rmck-choose)) .product-title a {
    color: #071c2e;
    font-size: clamp(15px, 1.35vw, 19px);
    font-weight: 700;
}
body :is(.g28x-catalogue, .rmck-product-page .related) .products li:is(.product_cat-protective-key-cases, .product_cat-key-repairs:has(.rmck-choose)) .price {
    color: #075589;
    font-size: 18px;
    font-weight: 700;
}
body :is(.g28x-catalogue, .rmck-product-page .related) .products li:is(.product_cat-protective-key-cases, .product_cat-key-repairs:has(.rmck-choose)) .product-buttons {
    padding: 12px 0 0;
    border-top: 1px solid #e6eef3;
}
body :is(.g28x-catalogue, .rmck-product-page .related) .products li:is(.product_cat-protective-key-cases, .product_cat-key-repairs:has(.rmck-choose)) .product-buttons .fusion-content-sep {
    display: none;
}
body :is(.g28x-catalogue, .rmck-product-page .related) .products li:is(.product_cat-protective-key-cases, .product_cat-key-repairs:has(.rmck-choose)) .product-buttons-container {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 8px;
}
body :is(.g28x-catalogue, .rmck-product-page .related) .products li:is(.product_cat-protective-key-cases, .product_cat-key-repairs:has(.rmck-choose)) .product-buttons-container::before,
body :is(.g28x-catalogue, .rmck-product-page .related) .products li:is(.product_cat-protective-key-cases, .product_cat-key-repairs:has(.rmck-choose)) .product-buttons-container::after,
body :is(.g28x-catalogue, .rmck-product-page .related) .products li:is(.product_cat-protective-key-cases, .product_cat-key-repairs:has(.rmck-choose)) .product-buttons-container > a::before,
body :is(.g28x-catalogue, .rmck-product-page .related) .products li:is(.product_cat-protective-key-cases, .product_cat-key-repairs:has(.rmck-choose)) .product-buttons-container > a::after {
    content: none !important;
}
body :is(.g28x-catalogue, .rmck-product-page .related) .products li:is(.product_cat-protective-key-cases, .product_cat-key-repairs:has(.rmck-choose)) .product-buttons-container > a {
    display: inline-flex;
    float: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-height: 44px;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--case-border);
    border-radius: 5px;
    background: #fff;
    color: #075589;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
}
body :is(.g28x-catalogue, .rmck-product-page .related) .products li:is(.product_cat-protective-key-cases, .product_cat-key-repairs:has(.rmck-choose)) .product-buttons-container > a:hover {
    background: var(--case-surface);
    border-color: #88b6d2;
}
body :is(.g28x-catalogue, .rmck-product-page .related) .products li:is(.product_cat-protective-key-cases, .product_cat-key-repairs:has(.rmck-choose)) .product-buttons-container > :is(.add_to_cart_button, .rmck-choose) {
    grid-row: 1;
    grid-column: 1;
    color: #fff;
    background: var(--case-accent);
    border-color: var(--case-accent);
}
body :is(.g28x-catalogue, .rmck-product-page .related) .products li:is(.product_cat-protective-key-cases, .product_cat-key-repairs:has(.rmck-choose)) .product-buttons-container > .show_details_button {
    grid-row: 1;
    grid-column: 2;
}
body :is(.g28x-catalogue, .rmck-product-page .related) .products li:is(.product_cat-protective-key-cases, .product_cat-key-repairs:has(.rmck-choose)) .product-buttons-container > :is(.add_to_cart_button, .rmck-choose):hover {
    color: #fff;
    background: #075589;
    border-color: #075589;
}
body :is(.g28x-catalogue, .rmck-product-page .related) .products li:is(.product_cat-protective-key-cases, .product_cat-key-repairs:has(.rmck-choose)) .product-buttons-container > .added_to_cart {
    grid-column: 1 / -1;
}
body :is(.g28x-catalogue, .rmck-product-page .related) .products li:is(.product_cat-protective-key-cases, .product_cat-key-repairs:has(.rmck-choose)) .product-buttons-container > .loading {
    opacity: .7;
}
body :is(.g28x-catalogue, .rmck-product-page .related) .products li:is(.product_cat-protective-key-cases, .product_cat-key-repairs:has(.rmck-choose)) a:focus-visible {
    outline: 2px solid var(--case-accent) !important;
    outline-offset: 2px;
}
@media (max-width: 560px) {
    body :is(.g28x-catalogue, .rmck-product-page .related) .products li:is(.product_cat-protective-key-cases, .product_cat-key-repairs:has(.rmck-choose)) .product-buttons-container {
        grid-template-columns: minmax(0, 1fr);
    }
    body :is(.g28x-catalogue, .rmck-product-page .related) .products li:is(.product_cat-protective-key-cases, .product_cat-key-repairs:has(.rmck-choose)) .product-buttons-container > .show_details_button {
        grid-row: 2;
        grid-column: 1;
    }
}

/* Repair cards have one destination, so the primary action spans the row. */
body :is(.g28x-catalogue, .rmck-product-page .related) .products li.product_cat-key-repairs .product-buttons-container > .rmck-choose {
    grid-column: 1 / -1;
}
body :is(.g28x-catalogue, .rmck-product-page .related) .products li.product_cat-key-repairs:has(.rmck-choose) .product-buttons-container > .show_details_button {
    display: none !important;
}

/* Individual products use the catalogue's blue actions and cool neutral surfaces. */
.rmck-product-page {
    --case-accent: #0068af;
    --case-border: #d7e3ed;
    --case-surface: #eef8fd;
}
body.rmck-product-page form.cart button.single_add_to_cart_button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    height: 44px !important;
    padding: 8px 18px !important;
    border: 1px solid var(--case-accent);
    border-radius: 5px;
    background: var(--case-accent);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
}
body.rmck-product-page form.cart button.single_add_to_cart_button:hover {
    border-color: #075589;
    background: #075589;
    color: #fff;
}
body.rmck-product-page form.cart :is(button, input):focus-visible {
    outline: 2px solid var(--case-accent) !important;
    outline-offset: 2px;
}
body.rmck-repair-product .g28x-key-choice form.cart .fusion-button-wrapper {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}
body.rmck-repair-product .g28x-key-choice form.cart .quantity:has(input[type="hidden"]) {
    display: none;
}
body.rmck-repair-product .g28x-key-choice form.cart button.single_add_to_cart_button {
    align-self: flex-start;
    width: fit-content;
    height: auto;
    min-width: 210px;
    margin: 0;
}
body.rmck-repair-product .g28x-key-choice .g28-key {
    border-radius: 8px;
    border-color: var(--case-border);
}
body.rmck-case-product main .type-product > .avada-single-product-gallery-wrapper {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none;
    margin: 0;
    padding: clamp(8px, 1.2vw, 16px);
    border: 1px solid var(--case-border);
    border-radius: 8px;
    background: #f6fafc;
}
body.rmck-case-product main .type-product > .summary {
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
}
body.rmck-case-product .summary .summary-container {
    box-sizing: border-box;
    padding: clamp(18px, 2.4vw, 34px);
    border: 1px solid var(--case-border);
    border-radius: 8px;
    background: var(--case-surface);
}
body.rmck-case-product .summary h1 {
    margin: 0 0 12px;
    font-size: clamp(26px, 3vw, 44px) !important;
    line-height: 1.12;
}
body.rmck-case-product .summary p.price {
    margin: 0 0 12px;
    color: #075589;
    font-size: 22px;
    font-weight: 700;
}
body.rmck-case-product .summary .woocommerce-product-details__short-description {
    margin: 0 0 16px;
}
body.rmck-case-product .summary form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    margin: 0 0 14px;
}
body.rmck-case-product .summary form.cart :is(.quantity, button.single_add_to_cart_button) {
    margin: 0;
}
body.rmck-case-product .summary form.cart .quantity :is(input, button) {
    box-sizing: border-box;
    height: 44px !important;
}
body.rmck-case-product main .type-product:has(> .summary > .summary-container) {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
    column-gap: clamp(20px, 3vw, 40px);
    row-gap: 20px;
}
body.rmck-case-product main .type-product > :not(.avada-single-product-gallery-wrapper, .summary) {
    grid-column: 1 / -1;
}
@media (max-width: 720px) {
    body.rmck-case-product main .type-product:has(> .summary > .summary-container) {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 14px;
    }
    body.rmck-repair-product .g28x-key-choice form.cart button.single_add_to_cart_button {
        width: 100%;
        min-width: 0;
    }
}
@media (max-width: 380px) {
    body.rmck-case-product .summary form.cart button.single_add_to_cart_button {
        width: 100%;
    }
}

/* The selected key label and checkout note use the same weight as shop cards. */
body.rmck-product-page .fusion-woo-short-description-tb > p { margin: 0; }
body.rmck-repair-product .g28x-key-choice .rmck-repair-checkout-note {
    margin-top: 12px;
    color: #102a40;
    font-size: 16px;
    line-height: 1.5;
}
body.rmck-repair-product .g28x-key-choice .rmck-repair-checkout-note p {
    margin: 0;
}
body.rmck-repair-product .g28x-key-choice .fusion-woo-short-description-tb {
    margin-top: 10px;
    max-width: 72ch;
    color: #415c70;
}
body.g28x-site :is(.g28-selector, .g28-checkout) .g28-key > span:last-child {
    color: #071c2e;
    font-family: inherit;
    font-size: clamp(15px, 1.2vw, 18px);
    font-weight: 700;
    line-height: 1.25;
    text-transform: capitalize;
}
body.g28x-site :is(.g28-selector, .g28-checkout) .g28-key:has(:checked) > span:last-child {
    color: #075589;
}
.rmck-search-header {
    padding: clamp(20px, 3.5vw, 48px);
    margin-bottom: 24px;
    background: #eef8fd;
    border: 1px solid #d7e3ed;
    border-radius: 8px;
}
.rmck-search-header h1 { margin: 0 0 12px; }
.rmck-search-header p { margin: 0 0 16px; }
.rmck-search-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 16px;
    padding: 0;
    margin: 0 0 24px;
    list-style: none;
}
.rmck-search-list li {
    padding: 18px;
    border: 1px solid #d7e3ed;
    border-radius: 8px;
    background: #fff;
}
.rmck-search-list h2 { margin: 0; font-size: clamp(17px, 1.6vw, 22px); }
.rmck-search-list h2 a { color: #071c2e; }
.rmck-search-list h2 a:hover { color: #0068af; }
.rmck-search-list .price { margin: 8px 0 0; color: #075589; font-weight: 700; }
.rmck-search-nav { margin-bottom: 32px; }
.rmck-search-header .rmck-shop-nav { margin-top: 16px; }

/* Account panels and order screens use the same surfaces and spacing as checkout. */
body.woocommerce-account .g28x-account .woocommerce-MyAccount-content {
    min-width: 0;
}
body.woocommerce-account .g28x-account .woocommerce-MyAccount-content > :is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .g28-account-note) {
    margin-block: 0 18px;
}
body.woocommerce-account .g28x-account .g28-account-note,
body.woocommerce-account .g28x-account .g28-panel {
    border-color: #d7e3ed;
    border-radius: 8px;
}
body.woocommerce-account .g28x-account .g28-account-note {
    padding: 14px 18px;
    background: #eef8fd;
}
body.woocommerce-account .g28x-account .g28-account-note p {
    margin: 4px 0 0;
}
body.woocommerce-account .g28x-account .g28-portal > :is(.g28-panel, .g28-notice, .g28-repair-card) {
    margin-block: 0 16px;
}
body.woocommerce-account .g28x-account .g28-portal :is(a, dd) {
    overflow-wrap: anywhere;
}
body.woocommerce-account .g28x-account :is(.woocommerce-MyAccount-content,.g28-portal) :is(a,button,input):focus-visible,
body.rmck-order-screen :is(#order_review,.woocommerce-order) :is(a,button,input,summary):focus-visible {
    outline: 2px solid #0068af !important;
    outline-offset: 2px;
}
body.rmck-order-screen #order_review,
body.rmck-order-screen .woocommerce-order {
    min-width: 0;
    padding-bottom: clamp(20px, 3vw, 36px);
}
body.rmck-order-screen #order_review table.shop_table,
body.rmck-order-screen .woocommerce-order .shop_table {
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #d7e3ed;
    border-radius: 8px;
}
body.rmck-order-screen #order_review :is(th,td),
body.rmck-order-screen .woocommerce-order .shop_table :is(th,td) {
    overflow-wrap: anywhere;
}
body.rmck-order-screen #order_review #payment,
body.rmck-order-screen .woocommerce-order .woocommerce-order-overview {
    padding: clamp(14px, 2vw, 24px);
    border: 1px solid #d7e3ed;
    border-radius: 8px;
    background: #eef8fd;
}
body.rmck-order-screen .woocommerce-order .woocommerce-order-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin: 0 0 22px;
    list-style: none;
}
body.rmck-order-screen .woocommerce-order .woocommerce-order-overview > li {
    float: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
}
body.rmck-order-screen #order_review #place_order {
    min-height: 44px;
    border-radius: 5px;
    background: #0068af;
    color: #fff;
    font-weight: 700;
}
body.rmck-order-screen #order_review #place_order:hover {
    background: #075589;
}
body.rmck-order-screen .g28x-full-receipt > summary {
    padding: 12px 16px;
    border: 1px solid #d7e3ed;
    border-radius: 8px;
    color: #075589;
    font-weight: 700;
    cursor: pointer;
}
body.rmck-order-screen .g28x-full-receipt[open] > summary {
    margin-bottom: 16px;
}
@media (max-width: 560px) {
    body.rmck-order-screen .woocommerce-order .woocommerce-order-overview > li {
        flex: 1 1 100%;
    }
    body.rmck-order-screen #order_review #place_order {
        width: 100%;
    }
}

body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table {
    margin-block: 0 20px;
    border-color: #d7e3ed;
    border-radius: 8px;
}
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table .button {
    min-height: 44px;
    padding: 9px 14px;
    border-radius: 5px;
}
body.woocommerce-account .g28-portal .g28-repair-card .g28-button {
    min-height: 44px;
}
body.rmck-order-screen.woocommerce-account .woocommerce-MyAccount-content :is(.shop_table, .woocommerce-customer-details) {
    margin-bottom: 20px;
}
@media (max-width: 560px) {
    body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table td {
        padding-block: 9px;
    }
    body.woocommerce-account .g28-portal .g28-repair-card .g28-button {
        width: 100%;
        justify-content: center;
    }
}
