/* Loaded only after Kadence Shop Kit is disabled. */
body.pairfum-native-shop.single-product div.product div.images {
    width: calc((100% - 16px) / 2) !important;
    margin-right: 16px;
}
body.pairfum-native-shop.single-product div.product div.summary {
    width: auto !important;
    float: none;
    overflow: hidden;
}
body.pairfum-native-shop.single-product div.product .single_add_to_cart_button {
    color: var(--base-3, #fff);
    background: var(--contrast, #3e3e3e);
    border: 1px solid var(--contrast, #3e3e3e);
    border-radius: 1px;
}
body.pairfum-native-shop.single-product div.product .single_add_to_cart_button:is(:hover, :focus-visible) {
    color: var(--contrast, #3e3e3e);
    background: var(--base-3, #fff);
    border-color: var(--contrast, #3e3e3e);
}
body.pairfum-native-shop.single-product .up-sells {
    clear: both;
    margin-top: 60px;
}

/* One scrolling thumbnail row. Overrides the child's old 20%-width rule. */
body.pairfum-native-shop.single-product div.product div.images .flex-control-thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    margin: 8px 0 0;
    padding: 0 0 4px;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
}
body.pairfum-native-shop.single-product div.product div.images .flex-control-thumbs li {
    float: none;
    flex: 0 0 calc((100% - 20px) / 6);
    width: auto !important;
    max-width: none !important;
    margin: 0;
    padding: 0;
    list-style: none;
    scroll-snap-align: start;
}
body.pairfum-native-shop.single-product div.product div.images .flex-control-thumbs img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}
body.pairfum-native-shop .flex-control-thumbs img:focus-visible {
    outline: 2px solid var(--contrast, #3e3e3e);
    outline-offset: -2px;
}

/* The browser supplies the disclosure and keyboard behavior. */
.pairfum-product-accordion {
    clear: both;
    padding-top: 20px;
}
.pairfum-product-accordion__item {
    border-bottom: 1px solid #c9c9c9;
}
.pairfum-product-accordion__item > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}
.pairfum-product-accordion__item > summary::-webkit-details-marker {
    display: none;
}
.pairfum-product-accordion__item > summary::after {
    content: '';
    width: 8px;
    height: 8px;
    margin-right: 4px;
    flex-shrink: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}
.pairfum-product-accordion__item[open] > summary::after {
    transform: rotate(225deg);
}
.pairfum-product-accordion__item > summary:focus-visible {
    outline: 2px solid var(--contrast, #3e3e3e);
    outline-offset: 2px;
}
.pairfum-product-accordion__content {
    margin-top: 0;
    padding: 4px 0 20px;
}

/* Additional markup is limited to WooCommerce's existing product-grid blocks. */
body.pairfum-native-shop .pairfum-grid-swap {
    display: block;
    position: relative;
    margin-bottom: 1em;
}
body.pairfum-native-shop .pairfum-grid-swap > .wc-block-grid__product-image {
    margin: 0;
}
body.pairfum-native-shop .pairfum-grid-swap > img.pairfum-grid-swap__secondary {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 150ms ease;
}
@media (hover: hover) {
    body.pairfum-native-shop .pairfum-grid-swap:hover > img.pairfum-grid-swap__secondary {
        opacity: 1;
    }
}
body.pairfum-native-shop .wc-block-grid__product-link:focus-visible .pairfum-grid-swap__secondary,
body.pairfum-native-shop .woocommerce-LoopProduct-link:focus-visible .secondary-image,
body.pairfum-native-shop .pairfum-image-preview > img.pairfum-grid-swap__secondary,
body.pairfum-native-shop .wc-product-image.pairfum-image-preview .secondary-image {
    opacity: 1;
}
@media (max-width: 768px) {
    body.pairfum-native-shop.single-product div.product div.images,
    body.pairfum-native-shop.single-product div.product div.summary {
        width: 100% !important;
        float: none;
        margin-right: 0;
    }
    body.pairfum-native-shop.single-product div.product div.images .flex-control-thumbs li {
        flex-basis: calc((100% - 24px) / 7);
    }
}
@media (prefers-reduced-motion: reduce) {
    body.pairfum-native-shop .pairfum-grid-swap__secondary {
        transition: none;
    }
}
/* Keep the native fullscreen gallery controls above the toolbar and popups. */
body.pairfum-native-shop .pswp {
    position: fixed;
    z-index: 1000000;
}