/**
 *  - v2.1.15
 * 
 * Copyright (c) 2025
 * Licensed GPLv2+
 */
.ct-variation-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: var(--swatches-gap, 10px)
}

.ct-variation-swatches .ct-swatches-more {
    align-self: center
}

.ct-variation-swatches .ct-swatches-more[data-state=hidden],.ct-variation-swatches .ct-swatches-more[data-state=expanded] {
    display: none
}

.ct-swatch-container {
    display: flex;
    justify-content: center;
    position: relative
}

.ct-swatch-container .ct-swatch {
    position: relative;
    cursor: pointer;
    overflow: clip;
    height: var(--swatch-size, 30px);
    border-radius: var(--swatch-border-radius)
}

.ct-swatch-container .ct-swatch-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%
}

.ct-swatch-container.ct-hidden {
    display: none
}

.ct-swatch-container.ct-limited {
    display: none
}

.ct-swatch-container .ct-tooltip {
    transform: translate3d(0px, calc(-100% - 7px), 0px)
}

.ct-swatch-container .ct-tooltip[data-tooltip-type=image] {
    height: auto;
    padding: 7px
}

.ct-swatch-container .ct-tooltip .ct-media-container {
    width: 80px
}

.ct-swatch-container:hover .ct-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0px, calc(-100% - 12px), 0px)
}

[data-swatches-shape=round] {
    --swatch-border-radius: 200px
}

[data-swatches-shape=square] {
    --swatch-border-radius: 3px
}

.ct-out-of-stock .ct-swatch-content {
    opacity: .4
}

[data-out-of-stock-swatch-type=crossed] .ct-out-of-stock .ct-swatch:before,[data-out-of-stock-swatch-type=crossed] .ct-out-of-stock .ct-swatch:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    width: 2px;
    height: calc(100% - 4px);
    background: #d83428;
    border-radius: 1px;
    pointer-events: none;
    transform-origin: center
}

[data-out-of-stock-swatch-type=crossed] .ct-out-of-stock .ct-swatch:before {
    transform: translate(-50%, -50%) rotate(45deg)
}

[data-out-of-stock-swatch-type=crossed] .ct-out-of-stock .ct-swatch:after {
    transform: translate(-50%, -50%) rotate(-45deg)
}

[data-swatches-type=button] .ct-swatch {
    min-width: var(--swatch-size);
    padding: 2px calc(var(--swatch-size)/3.5);
    font-size: calc(var(--swatch-size)/2.5);
    font-weight: 600;
    line-height: 1;
    color: var(--swatch-button-text-color);
    background: var(--swatch-button-background-color);
    border: 2px solid var(--swatch-button-border-color, var(--theme-border-color));
    transition: color .12s cubic-bezier(0.455, 0.03, 0.515, 0.955),background .12s cubic-bezier(0.455, 0.03, 0.515, 0.955),border-color .12s cubic-bezier(0.455, 0.03, 0.515, 0.955)
}

:is([data-swatches-type=color],[data-swatches-type=image],[data-swatches-type=mixed]) .ct-swatch {
    width: var(--swatch-size, 30px);
    padding: 2px;
    border: 2px solid var(--swatch-border-color, var(--theme-border-color));
    transition: border-color .12s cubic-bezier(0.455, 0.03, 0.515, 0.955)
}

:is([data-swatches-type=color],[data-swatches-type=image],[data-swatches-type=mixed]) .ct-swatch-content {
    aspect-ratio: 1/1;
    border-radius: inherit
}

.ct-variation-swatches:not([data-swatches-type=select]) select {
    display: none
}

.ct-inline-variations form.variations_form table.variations tr {
    flex-direction: row
}

.ct-inline-variations form.variations_form table.variations tr th {
    padding-top: .25em;
    width: 30%
}

.ct-inline-variations form.variations_form table.variations tr td {
    width: 70%
}

.ct-card-variation-swatches .variations {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.ct-card-variation-swatches .ct-variation-swatches {
    justify-content: var(--horizontal-alignment)
}
