.wc-ev-shop-variations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
    direction: rtl;
}

.wc-ev-swatches-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.wc-ev-attribute-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.wc-ev-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #000;
    cursor: pointer;
    background: #fff;
    color: #333;
    font-size: 14px;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
    overflow: hidden;
}

/* Shape variations */
.wc-ev-swatch.shape-circle {
    border-radius: 100px;
    min-width: 32px;
    padding: 0;
}

.wc-ev-swatch.shape-square {
    border-radius: 4px;
}

.wc-ev-swatch.shape-none {
    border: none;
    background: transparent;
    padding: 0;
}

/* Type variations */
.wc-ev-swatch.type-color {
    color: transparent;
    font-size: 0;
}
.wc-ev-swatch.type-color.shape-none {
    /* If no border, we need some width/height for color */
    min-width: 30px;
    height: 30px;
}

.wc-ev-swatch.type-image {
    color: transparent;
    font-size: 0;
}
.wc-ev-swatch.type-image.shape-none {
    min-width: 30px;
    height: 30px;
}

/* Selected state */
.wc-ev-swatch.selected {
    border-width: 2px;
    font-weight: bold;
}

/* Out of stock styles */
.wc-ev-swatch.out-of-stock {
    cursor: not-allowed;
    opacity: 0.6;
}

.wc-ev-swatch.out-of-stock.oos-blur {
    filter: blur(1px);
}

.wc-ev-swatch.out-of-stock.oos-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -20%;
    width: 140%;
    height: 1px;
    background-color: red;
    transform: rotate(45deg);
    z-index: 1;
}

/* Admin fields */
.wcev-color-picker {
    margin-bottom: 10px;
}
