/**
 * XPOS Variation Gallery
 *
 * Compatible with:
 * - WooCommerce
 * - WoodMart
 * - Elementor WooCommerce Product Images
 * - External image URLs
 *
 * Features:
 * - Main image
 * - Thumbnail navigation
 * - Slide animation
 * - Lightbox
 * - Previous / next
 * - Responsive/mobile
 */


/* =========================================================
   XPOS FRONTEND CONTAINER
   ========================================================= */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-frontend-container {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    z-index: 5;
}


/* =========================================================
   XPOS GALLERY
   ========================================================= */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-frontend-container
.xpos-vg-gallery {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================================
   MAIN IMAGE AREA
   ========================================================= */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-main {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;

    isolation: isolate;
}


/* =========================================================
   MAIN IMAGE BUTTON
   ========================================================= */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-main-trigger {
    position: relative;
    display: block;

    width: 100%;
    max-width: 100%;

    height: auto;
    min-height: 1px;

    margin: 0;
    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    overflow: hidden;

    cursor: zoom-in;

    text-align: center;

    font-size: 0;
    line-height: 0;

    box-sizing: border-box;

    appearance: none;
    -webkit-appearance: none;
}


/*
 * Remove browser focus outline.
 */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-main-trigger:focus {
    outline: none;
}


/*
 * Accessible keyboard focus.
 */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-main-trigger:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}


/* =========================================================
   MAIN IMAGE
   ========================================================= */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-main-image {
    position: relative;

    display: block;

    width: 100%;
    max-width: 100%;

    height: auto;

    margin: 0;
    padding: 0;

    border: 0;

    object-fit: contain;

    opacity: 1;

    transform: translateX(0);

    user-select: none;

    -webkit-user-drag: none;

    transition:
        transform 0.35s ease,
        opacity 0.35s ease;

    box-sizing: border-box;
}


/*
 * Make external images behave correctly.
 */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-main-image[src^="http"] {
    object-fit: contain;
}


/* =========================================================
   IMAGE SLIDE ANIMATION
   ========================================================= */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-main {
    overflow: hidden;
}


/*
 * New image during animation.
 */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-main-image-new {
    position: absolute !important;

    top: 0;
    left: 0;

    z-index: 2;

    display: block;

    width: 100% !important;
    max-width: 100% !important;

    height: 100% !important;

    margin: 0;
    padding: 0;

    object-fit: contain;

    opacity: 1;

    transition:
        transform 0.35s ease,
        opacity 0.35s ease;

    pointer-events: none;
}


/*
 * New image enters from right.
 */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-main-image-new.xpos-vg-enter-from-right {
    transform: translateX(100%);
}


/*
 * New image enters from left.
 */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-main-image-new.xpos-vg-enter-from-left {
    transform: translateX(-100%);
}


/*
 * New image reaches center.
 */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-main-image-new.xpos-vg-image-visible {
    transform: translateX(0);
    opacity: 1;
}


/*
 * Old image leaves left.
 */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-main-image.xpos-vg-leave-to-left {
    transform: translateX(-100%);
    opacity: 0;
}


/*
 * Old image leaves right.
 */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-main-image.xpos-vg-leave-to-right {
    transform: translateX(100%);
    opacity: 0;
}


/*
 * During animation.
 */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-main.xpos-vg-changing {
    cursor: wait;
}


/* =========================================================
   THUMBNAILS CONTAINER
   ========================================================= */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-thumbnails {
    position: relative;

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 8px;

    width: 100%;
    max-width: 100%;

    margin: 10px 0 0;
    padding: 0;

    box-sizing: border-box;

    list-style: none;
}


/* =========================================================
   THUMBNAIL BUTTON
   ========================================================= */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-thumbnail {
    position: relative;

    display: block;

    flex: 0 0 auto;

    width: 76px;
    height: 76px;

    margin: 0;
    padding: 0;

    border: 2px solid transparent;

    border-radius: 2px;

    background: transparent;

    overflow: hidden;

    cursor: pointer;

    opacity: 0.65;

    box-sizing: border-box;

    transition:
        opacity 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;

    appearance: none;
    -webkit-appearance: none;

    font-size: 0;
    line-height: 0;
}


/*
 * Thumbnail hover.
 */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-thumbnail:hover {
    opacity: 1;

    transform: translateY(-1px);
}


/*
 * Active thumbnail.
 */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-thumbnail.is-active {
    opacity: 1;

    border-color: currentColor;
}


/*
 * Thumbnail focus.
 */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-thumbnail:focus {
    outline: none;
}


/*
 * Keyboard focus.
 */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-thumbnail:focus-visible {
    outline: 2px solid currentColor;

    outline-offset: 2px;
}


/* =========================================================
   THUMBNAIL IMAGE
   ========================================================= */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-thumbnail img {
    display: block;

    width: 100%;
    height: 100%;

    max-width: none;

    margin: 0;
    padding: 0;

    border: 0;

    object-fit: cover;

    user-select: none;

    -webkit-user-drag: none;

    pointer-events: none;
}


/* =========================================================
   EXTERNAL IMAGE SUPPORT
   ========================================================= */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-main-image,
.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-thumbnail img {
    image-rendering: auto;
}


/* =========================================================
   HIDE ORIGINAL WOOCOMMERCE / WOODMART GALLERY
   ========================================================= */

/*
 * The JavaScript hides the original gallery children
 * using inline styles.
 *
 * This rule is intentionally limited to the original
 * WooCommerce wrapper so we don't accidentally hide
 * the XPOS frontend container.
 */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
> .woocommerce-product-gallery__wrapper {
    display: none !important;
}


/*
 * If WoodMart creates a flexslider navigation,
 * don't display it while XPOS is active.
 */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
.flex-control-nav {
    display: none !important;
}


.woocommerce-product-gallery[data-xpos-vg-active="1"]
.flex-direction-nav {
    display: none !important;
}


/*
 * Prevent WoodMart thumbnails from appearing underneath
 * the XPOS gallery.
 */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
.woodmart-thumbnails {
    display: none !important;
}


.woocommerce-product-gallery[data-xpos-vg-active="1"]
.wd-product-gallery-thumbs {
    display: none !important;
}


/* =========================================================
   ELEMENTOR SUPPORT
   ========================================================= */

.elementor-widget-woocommerce-product-images
.woocommerce-product-gallery[data-xpos-vg-active="1"] {
    width: 100%;
    max-width: 100%;
}


.elementor-widget-woocommerce-product-images
.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-frontend-container {
    width: 100%;
    max-width: 100%;
}


.elementor-widget-woocommerce-product-images
.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-main-image {
    width: 100%;
    max-width: 100%;
    height: auto;
}


/* =========================================================
   WOODMART SUPPORT
   ========================================================= */

/*
 * WoodMart sometimes applies overflow/position rules
 * to the product image area.
 */

.wd-product
.woocommerce-product-gallery[data-xpos-vg-active="1"] {
    position: relative;
    width: 100%;
    max-width: 100%;
}


/*
 * XPOS must remain above the hidden original gallery.
 */

.wd-product
.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-frontend-container {
    position: relative;
    z-index: 20;
}


/*
 * Prevent WoodMart image links from interfering.
 */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-main-trigger,
.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-thumbnail {
    text-decoration: none !important;
}


/* =========================================================
   IMAGE LOADING
   ========================================================= */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-main-image {
    background: transparent;
}


/*
 * Broken image icon should not create strange spacing.
 */

.woocommerce-product-gallery[data-xpos-vg-active="1"]
.xpos-vg-main-image[style] {
    max-width: 100%;
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

#xpos-vg-lightbox {
    position: fixed;

    inset: 0;

    z-index: 999999;

    display: none;

    align-items: center;
    justify-content: center;

    width: 100vw;
    height: 100vh;

    margin: 0;
    padding: 0;

    box-sizing: border-box;
}


#xpos-vg-lightbox.is-open {
    display: flex !important;
}


/* =========================================================
   LIGHTBOX BACKDROP
   ========================================================= */

#xpos-vg-lightbox
.xpos-vg-lightbox__backdrop {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.92);

    cursor: default;
}


/* =========================================================
   LIGHTBOX DIALOG
   ========================================================= */

#xpos-vg-lightbox
.xpos-vg-lightbox__dialog {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    padding: 60px 80px;

    box-sizing: border-box;

    pointer-events: none;
}


/* =========================================================
   LIGHTBOX CONTENT
   ========================================================= */

#xpos-vg-lightbox
.xpos-vg-lightbox__content {
    position: relative;

    z-index: 3;

    display: flex;

    align-items: center;
    justify-content: center;

    width: auto;
    height: auto;

    max-width: 95vw;
    max-height: 90vh;

    margin: 0;
    padding: 0;

    pointer-events: auto;

    box-sizing: border-box;
}


/* =========================================================
   LIGHTBOX IMAGE
   ========================================================= */

#xpos-vg-lightbox
.xpos-vg-lightbox__image {
    display: block;

    width: auto;
    height: auto;

    max-width: 90vw;
    max-height: 88vh;

    margin: 0;
    padding: 0;

    border: 0;

    object-fit: contain;

    user-select: none;

    -webkit-user-drag: none;

    box-sizing: border-box;
}


/* =========================================================
   LIGHTBOX CLOSE
   ========================================================= */

#xpos-vg-lightbox
.xpos-vg-lightbox__close {
    position: absolute;

    top: 20px;
    right: 25px;

    z-index: 10;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    margin: 0;
    padding: 0;

    border: 0;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);

    color: #fff;

    font-family: Arial, sans-serif;

    font-size: 32px;
    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    pointer-events: auto;

    box-sizing: border-box;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


#xpos-vg-lightbox
.xpos-vg-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.25);

    transform: scale(1.05);
}


#xpos-vg-lightbox
.xpos-vg-lightbox__close:focus {
    outline: none;
}


#xpos-vg-lightbox
.xpos-vg-lightbox__close:focus-visible {
    outline: 2px solid #fff;

    outline-offset: 3px;
}


/* =========================================================
   LIGHTBOX PREVIOUS / NEXT
   ========================================================= */

#xpos-vg-lightbox
.xpos-vg-lightbox__prev,

#xpos-vg-lightbox
.xpos-vg-lightbox__next {
    position: absolute;

    top: 50%;

    z-index: 10;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 48px;
    height: 64px;

    margin: 0;
    padding: 0;

    transform: translateY(-50%);

    border: 0;

    border-radius: 4px;

    background: rgba(255, 255, 255, 0.12);

    color: #fff;

    font-family: Arial, sans-serif;

    font-size: 32px;

    line-height: 1;

    cursor: pointer;

    pointer-events: auto;

    box-sizing: border-box;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


#xpos-vg-lightbox
.xpos-vg-lightbox__prev:hover,

#xpos-vg-lightbox
.xpos-vg-lightbox__next:hover {
    background: rgba(255, 255, 255, 0.25);
}


#xpos-vg-lightbox
.xpos-vg-lightbox__prev {
    left: 20px;
}


#xpos-vg-lightbox
.xpos-vg-lightbox__next {
    right: 20px;
}


#xpos-vg-lightbox
.xpos-vg-lightbox__prev:focus,

#xpos-vg-lightbox
.xpos-vg-lightbox__next:focus {
    outline: none;
}


#xpos-vg-lightbox
.xpos-vg-lightbox__prev:focus-visible,

#xpos-vg-lightbox
.xpos-vg-lightbox__next:focus-visible {
    outline: 2px solid #fff;

    outline-offset: 3px;
}


/* =========================================================
   LIGHTBOX COUNTER
   ========================================================= */

#xpos-vg-lightbox
.xpos-vg-lightbox__counter {
    position: absolute;

    left: 50%;
    bottom: 18px;

    z-index: 10;

    transform: translateX(-50%);

    color: #fff;

    font-family: Arial, sans-serif;

    font-size: 14px;
    font-weight: 400;

    line-height: 1;

    white-space: nowrap;

    pointer-events: none;
}


/* =========================================================
   BODY SCROLL LOCK
   ========================================================= */

body.xpos-vg-lightbox-open {
    overflow: hidden !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    /*
     * Main gallery.
     */

    .woocommerce-product-gallery[data-xpos-vg-active="1"]
    .xpos-vg-main {
        width: 100%;
    }


    /*
     * Thumbnails.
     */

    .woocommerce-product-gallery[data-xpos-vg-active="1"]
    .xpos-vg-thumbnails {
        gap: 6px;

        margin-top: 6px;

        width: 100%;
    }


    /*
     * Smaller thumbnails.
     */

    .woocommerce-product-gallery[data-xpos-vg-active="1"]
    .xpos-vg-thumbnail {
        width: 60px;
        height: 60px;
    }


    /*
     * Lightbox.
     */

    #xpos-vg-lightbox
    .xpos-vg-lightbox__dialog {
        padding: 50px 15px;
    }


    #xpos-vg-lightbox
    .xpos-vg-lightbox__content {
        max-width: 96vw;
        max-height: 84vh;
    }


    #xpos-vg-lightbox
    .xpos-vg-lightbox__image {
        max-width: 96vw;
        max-height: 82vh;
    }


    /*
     * Close button.
     */

    #xpos-vg-lightbox
    .xpos-vg-lightbox__close {
        top: 12px;
        right: 12px;

        width: 40px;
        height: 40px;

        font-size: 28px;
    }


    /*
     * Previous / next.
     */

    #xpos-vg-lightbox
    .xpos-vg-lightbox__prev,

    #xpos-vg-lightbox
    .xpos-vg-lightbox__next {
        width: 38px;
        height: 50px;

        font-size: 24px;
    }


    #xpos-vg-lightbox
    .xpos-vg-lightbox__prev {
        left: 8px;
    }


    #xpos-vg-lightbox
    .xpos-vg-lightbox__next {
        right: 8px;
    }


    /*
     * Counter.
     */

    #xpos-vg-lightbox
    .xpos-vg-lightbox__counter {
        bottom: 12px;

        font-size: 12px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .woocommerce-product-gallery[data-xpos-vg-active="1"]
    .xpos-vg-thumbnails {
        gap: 5px;
    }


    .woocommerce-product-gallery[data-xpos-vg-active="1"]
    .xpos-vg-thumbnail {
        width: 54px;
        height: 54px;
    }


    #xpos-vg-lightbox
    .xpos-vg-lightbox__prev,

    #xpos-vg-lightbox
    .xpos-vg-lightbox__next {
        width: 34px;
        height: 46px;

        font-size: 20px;
    }


    #xpos-vg-lightbox
    .xpos-vg-lightbox__prev {
        left: 5px;
    }


    #xpos-vg-lightbox
    .xpos-vg-lightbox__next {
        right: 5px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .woocommerce-product-gallery[data-xpos-vg-active="1"]
    .xpos-vg-main-image,

    .woocommerce-product-gallery[data-xpos-vg-active="1"]
    .xpos-vg-main-image-new,

    .woocommerce-product-gallery[data-xpos-vg-active="1"]
    .xpos-vg-thumbnail,

    #xpos-vg-lightbox
    .xpos-vg-lightbox__close,

    #xpos-vg-lightbox
    .xpos-vg-lightbox__prev,

    #xpos-vg-lightbox
    .xpos-vg-lightbox__next {
        transition: none !important;
    }
}

/* =========================================================
   XPOS CUSTOM MIX VARIABLE UI
   ========================================================= */

.xpos-mix-variable-ui {
    width: 100%;
    max-width: 100%;
    margin: 15px 0 20px;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================================
   GROUP
   ========================================================= */

.xpos-mix-group {
    width: 100%;
    margin: 0 0 22px;
    padding: 0;
    box-sizing: border-box;
}

.xpos-mix-group:last-child {
    margin-bottom: 0;
}


/* =========================================================
   LABEL
   ========================================================= */

.xpos-mix-label {
    display: block;
    margin: 0 0 12px;
    padding: 0;

    color: #222;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;

    box-sizing: border-box;
}

.xpos-mix-label strong {
    font-weight: 700;
}


/* =========================================================
   OPTIONS ROW
   ========================================================= */

.xpos-mix-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;

    width: 100%;
    margin: 0;
    padding: 0;

    box-sizing: border-box;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.xpos-mix-option {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 58px;
    min-height: 40px;

    margin: 0;
    padding: 8px 14px;

    border: 1px solid #ddd;
    border-radius: 3px;

    background: #fff;
    color: #222;

    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    text-transform: none;
    letter-spacing: normal;

    cursor: pointer;

    box-sizing: border-box;

    appearance: none;
    -webkit-appearance: none;

    transition:
        border-color .2s ease,
        background-color .2s ease,
        color .2s ease,
        box-shadow .2s ease,
        opacity .2s ease;
}


.xpos-mix-option::before,
.xpos-mix-option::after {
    display: none !important;
    content: none !important;
}


/* =========================================================
   HOVER
   ========================================================= */

.xpos-mix-option:hover:not(:disabled):not(.is-disabled) {
    border-color: #bbb;
    background: #fff;
    color: #222;
}


/* =========================================================
   SELECTED
   ========================================================= */

.xpos-mix-option.is-selected {
    border-color: #e30613;
    background: #e30613;
    color: #fff;
    box-shadow: none;
}

.xpos-mix-option.is-selected:hover {
    border-color: #e30613;
    background: #e30613;
    color: #fff;
}


/* =========================================================
   DISABLED
   ========================================================= */

.xpos-mix-option.is-disabled,
.xpos-mix-option:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.xpos-mix-option.is-disabled:hover,
.xpos-mix-option:disabled:hover {
    border-color: #ddd;
    background: #fff;
    color: #222;
}


/* =========================================================
   FOCUS
   ========================================================= */

.xpos-mix-option:focus {
    outline: none;
}

.xpos-mix-option:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}


/* =========================================================
   COLOR / LEFT SIDE
   ========================================================= */

.xpos-mix-color-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.xpos-mix-color-option {
    min-width: 44px;
    min-height: 40px;
}


/* =========================================================
   SIZE / RIGHT SIDE
   ========================================================= */

.xpos-mix-size-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.xpos-mix-size-option {
    min-width: 50px;
    min-height: 40px;
}


/* =========================================================
   HIDE NATIVE WOOCOMMERCE SELECT
   ========================================================= */

form.variations_form
select.xpos-mix-native-select {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    min-width: 1px !important;
    max-width: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;

    white-space: nowrap !important;

    border: 0 !important;

    opacity: 0 !important;

    pointer-events: none !important;
}


/* =========================================================
   HIDE ORIGINAL WOOCOMMERCE VARIATION ROW
   ========================================================= */

form.variations_form tr:has(
    select.xpos-mix-native-select
) {
    display: none !important;
}


/* =========================================================
   HIDE WOODMART RESET LINK
   ========================================================= */

form.variations_form
tr:has(
    select.xpos-mix-native-select
)
.wd-reset-var {
    display: none !important;
}


/* =========================================================
   WOODMART COMPATIBILITY
   ========================================================= */

.wd-product-detail .xpos-mix-variable-ui,
.product-summary .xpos-mix-variable-ui,
.summary .xpos-mix-variable-ui,
.wd-product .xpos-mix-variable-ui {
    width: 100%;
    max-width: 100%;
}

.wd-product .xpos-mix-variable-ui .xpos-mix-option,
.product-summary .xpos-mix-variable-ui .xpos-mix-option,
.summary .xpos-mix-variable-ui .xpos-mix-option {
    font-family: inherit;
    text-transform: none;
    letter-spacing: normal;
}


/* =========================================================
   NORMAL WOOCOMMERCE COMPATIBILITY
   ========================================================= */

.variations_form .xpos-mix-variable-ui {
    clear: both;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .xpos-mix-variable-ui {
        margin: 12px 0 18px;
    }

    .xpos-mix-group {
        margin-bottom: 18px;
    }

    .xpos-mix-options {
        gap: 8px;
    }

    .xpos-mix-option {
        min-height: 38px;
        padding: 7px 12px;
        font-size: 13px;
    }

    .xpos-mix-color-option {
        min-width: 42px;
    }

    .xpos-mix-size-option {
        min-width: 48px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .xpos-mix-options {
        gap: 6px;
    }

    .xpos-mix-option {
        min-height: 36px;
        padding: 6px 10px;
        font-size: 13px;
    }

    .xpos-mix-color-option {
        min-width: 40px;
    }

    .xpos-mix-size-option {
        min-width: 46px;
    }
}
