.variations_form .variation-options--style button.bpstudio-style-option {
    width: 54px;
    min-height: 54px;
    padding: 4px;
}

.variations_form .variation-options--style .bpstudio-style-option img {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 4px;
}

.variations_form .variation-options button[hidden] {
    display: none !important;
}

.variations_form .variation-options--color {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px;
    width: 289px;
    max-width: 100%;
}

.variations_form .variation-options--color button.variation-color {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
}

.variations_form .variation-options--color button.variation-color .swatch {
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
}

.woocommerce-product-gallery .bpstudio-gallery-thumbnails {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 10px;
    padding: 3px 3px 8px;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #809988 var(--sage, #e7eee6);
}

.woocommerce-product-gallery .bpstudio-gallery-thumbnails[hidden] {
    display: none;
}

.woocommerce-product-gallery .bpstudio-gallery-thumbnails button {
    display: block;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line, #d4dbd1);
    border-radius: 7px;
    background: var(--paper, #f9f9f4);
    cursor: pointer;
}

.woocommerce-product-gallery .bpstudio-gallery-thumbnails button:is(:hover, [aria-pressed="true"]) {
    border-color: var(--forest, #245a44);
    box-shadow: 0 0 0 1px var(--forest, #245a44);
}

.woocommerce-product-gallery .bpstudio-gallery-thumbnails button:focus-visible {
    outline: 2px solid var(--forest, #245a44);
    outline-offset: 2px;
}

.woocommerce-product-gallery .bpstudio-gallery-thumbnails img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
}

@media (max-width: 610px) {
    .woocommerce-product-gallery .bpstudio-gallery-thumbnails {
        justify-content: safe center;
        gap: 0;
        margin-top: 4px;
        padding: 2px;
        scrollbar-width: none;
    }

    .woocommerce-product-gallery .bpstudio-gallery-thumbnails::-webkit-scrollbar {
        display: none;
    }

    .woocommerce-product-gallery .bpstudio-gallery-thumbnails button,
    .woocommerce-product-gallery .bpstudio-gallery-thumbnails button:is(:hover, [aria-pressed="true"]) {
        display: grid;
        place-items: center;
        flex: 0 0 24px;
        width: 24px;
        height: 32px;
        border: 0;
        border-radius: 6px;
        background: transparent;
        box-shadow: none;
    }

    .woocommerce-product-gallery .bpstudio-gallery-thumbnails button::after {
        content: '';
        width: 8px;
        height: 8px;
        box-sizing: border-box;
        border: 1px solid #809488;
        border-radius: 50%;
        background: var(--line, #d4dbd1);
    }

    .woocommerce-product-gallery .bpstudio-gallery-thumbnails button[aria-pressed="true"]::after {
        border-color: var(--forest, #245a44);
        background: var(--forest, #245a44);
    }

    .woocommerce-product-gallery div.bpstudio-gallery-thumbnails button[data-color] > img {
        display: none;
    }

    .woocommerce-product-gallery .bpstudio-gallery-swipe {
        touch-action: pan-y pinch-zoom;
    }
}
