/* Native CPO fields keep their names, validation and change events.
   Browsers without customizable selects keep their native picker. */
@supports (appearance: base-select) {
    body.single-product #uni_cpo_options .uni-module-select > select:not([multiple]):not([size]),
    body.single-product #uni_cpo_options .uni-module-select > select[size="1"]:not([multiple]),
    body.single-product #uni_cpo_options .uni-module-select > select:not([multiple]):not([size])::picker(select),
    body.single-product #uni_cpo_options .uni-module-select > select[size="1"]:not([multiple])::picker(select) {
        appearance: base-select !important;
    }
    /* Keep the closed value on one line within the existing 36px field. */
    body.single-product #uni_cpo_options .uni-module-select > select:not([multiple]):not([size]),
    body.single-product #uni_cpo_options .uni-module-select > select[size="1"]:not([multiple]) {
        display: block !important;
        padding: 6px 32px 6px 10px !important;
        line-height: 22px !important;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    body.single-product #uni_cpo_options .uni-module-select > select::picker(select) {
        border: 1px solid #582c4d;
        border-radius: 3px;
        padding: 4px;
        background: #fff;
        color: #582c4d;
        font: 400 14px/1.4 "Source Sans Pro", Arial, sans-serif;
        max-height: min(320px, 60dvh);
        overflow-y: auto;
        box-sizing: border-box;
        width: anchor-size(width);
        max-width: calc(100vw - 24px);
        white-space: normal;
    }
    body.single-product #uni_cpo_options .uni-module-select > select::picker-icon { display: none; }
    body.single-product #uni_cpo_options .uni-module-select > select option {
        padding: 8px 10px;
        border-radius: 2px;
        background: #fff;
        color: #582c4d;
        font: 400 14px/1.4 "Source Sans Pro", Arial, sans-serif;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    body.single-product #uni_cpo_options .uni-module-select > select option:checked {
        background: #582c4d;
        color: #fff;
    }
    body.single-product #uni_cpo_options .uni-module-select > select option:is(:hover, :focus) {
        background: #d4b9b2;
        color: #582c4d;
    }
    body.single-product #uni_cpo_options .uni-module-select > select option:disabled {
        color: #777;
        background: #f3f3f3;
    }
}
/* A single square frame; the full product thumbnail remains visible. */
.xoo-wsc-container .mydiy-cart-item-v2948 .xoo-wsc-img-col {
    width: 64px !important;
    max-width: 64px !important;
    height: 64px !important;
    flex-basis: 64px !important;
    border-radius: 4px;
    overflow: hidden;
}
.xoo-wsc-container .mydiy-cart-item-v2948 .xoo-wsc-img-col > a {
    display: block;
    width: 64px;
    height: 64px;
    line-height: 0;
}
.xoo-wsc-container .mydiy-cart-item-v2948 .xoo-wsc-img-col img {
    display: block !important;
    width: 64px !important;
    max-width: 100% !important;
    height: 64px !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 4px;
}
/* The inner totals slot already supplies the line below Estimated total. */
body.woocommerce-cart .wc-block-cart .wp-block-woocommerce-cart-order-summary-block {
    border-bottom: 0 !important;
}
body.woocommerce-cart .wc-block-cart .wc-block-cart__submit-button:focus {
    box-shadow: none !important;
}
body.woocommerce-cart .wc-block-cart .wc-block-cart__submit-button:focus:not(:focus-visible) {
    outline: none !important;
}
body.woocommerce-cart .wc-block-cart .wc-block-cart__submit-button:focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: -5px !important;
    box-shadow: none !important;
}
/* Shared banner support tile: the link owns the only painted surface. */
body .elementor-element.mydiy-guide-hero__support-v2918 {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}
body .elementor-element.mydiy-guide-hero__support-v2918 .elementor-widget-container,
body .elementor-element.mydiy-guide-hero__support-v2918 p {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
}
body a.mydiy-guide-hero__support-link-v2918,
body a.mydiy-measure-hero__support {
    box-sizing: border-box !important;
    display: grid !important;
    gap: 3px !important;
    padding: 20px 22px !important;
    border: 1px solid rgba(255,255,255,.4) !important;
    border-radius: 0 !important;
    background: rgba(28,16,26,.26) !important;
    color: #fff !important;
    text-decoration: none !important;
    backdrop-filter: blur(5px) !important;
    transition: background-color 180ms ease, border-color 180ms ease !important;
}
body a.mydiy-guide-hero__support-link-v2918:is(:hover,:focus-visible),
body a.mydiy-measure-hero__support:is(:hover,:focus-visible) {
    background: rgba(88,44,77,.78) !important;
    border-color: #fff !important;
}
body a.mydiy-guide-hero__support-link-v2918 > span,
body a.mydiy-measure-hero__support > span { transition: transform 180ms ease; }
body a.mydiy-guide-hero__support-link-v2918:is(:hover,:focus-visible) > span,
body a.mydiy-measure-hero__support:is(:hover,:focus-visible) > span { transform: translateX(4px); }
body a.mydiy-guide-hero__support-link-v2918:focus-visible,
body a.mydiy-measure-hero__support:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }
/* Collection cards share image feedback, underlines and arrow movement. */
body .mydiy-measure-grid > a > img,
body .mydiy-sample-card .mydiy-sample-card__image img {
    transform: none !important;
    transition: filter 180ms ease !important;
}
body .mydiy-measure-grid > a:is(:hover,:focus-visible) > img,
body .mydiy-sample-card:is(:hover,:focus-within) .mydiy-sample-card__image img { filter: brightness(.95); }
body .mydiy-measure-grid > a > span > b,
body .mydiy-sample-card > div > a {
    border-bottom: 0 !important;
    text-decoration: underline !important;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}
body .mydiy-measure-grid > a:is(:hover,:focus-visible) > span > b,
body .mydiy-sample-card:is(:hover,:focus-within) > div > a { text-decoration-thickness: 2px; }
body .mydiy-measure-grid > a > span > b > i,
body .mydiy-sample-card > div > a > span { display: inline-block; transition: transform 180ms ease; }
body .mydiy-measure-grid > a:is(:hover,:focus-visible) > span > b > i,
body .mydiy-sample-card:is(:hover,:focus-within) > div > a > span { transform: translateX(4px); }
body .mydiy-measure-grid > a:focus-visible { outline: 2px solid #582c4d; outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) {
    body a.mydiy-guide-hero__support-link-v2918,
    body a.mydiy-measure-hero__support,
    body a.mydiy-guide-hero__support-link-v2918 > span,
    body a.mydiy-measure-hero__support > span,
    body .mydiy-measure-grid > a > img,
    body .mydiy-sample-card .mydiy-sample-card__image img,
    body .mydiy-measure-grid > a > span > b > i,
    body .mydiy-sample-card > div > a > span { transition: none !important; }
    body a.mydiy-guide-hero__support-link-v2918 > span,
    body a.mydiy-measure-hero__support > span,
    body .mydiy-measure-grid > a > span > b > i,
    body .mydiy-sample-card > div > a > span { transform: none !important; }
}

/* Only audited, trimmed shutter diagrams use their new intrinsic ratio. */
body.mdb-shutter-guide-brand img.mydiy-shutter-diagram-compact-v2966 {
    height: auto !important;
    aspect-ratio: auto !important;
}
/* The four obstruction pictures are PNGs, including responsive thumbnails.
   Reuse the existing exact plum/blush palette; alpha and white stay intact. */
body.mdb-shutter-guide-brand img:is(
    [src*="/2026/08/54.-Security-boxes-04"],
    [src*="/2026/08/53.-Locks-03"],
    [src*="/2026/08/52.-Winders-01"],
    [src*="/2026/08/55.-Handles-05"]
) {
    filter: url("#mydiy-window-recess-palette");
}
