.csw-hidden-select select {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.csw-variation-field {
    margin: 10px 0 14px;
}

.csw-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.csw-swatch {
    cursor: pointer;
    border: 1px solid #cfcfcf;
    border-radius: 4px;
    padding: 0;
    background: #fff;
    transition: transform .05s ease, border-color .1s ease, box-shadow .1s ease;
}

.csw-swatch:hover {
    transform: translateY(-1px);
}

.csw-swatch.is-selected {
    border-color: #111;
    box-shadow: 0 0 0 2px rgba(0,0,0,.25);
}

.csw-swatch--discontinued {
    position: relative;
    opacity: .75;
}

.csw-swatch--discontinued::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 4px;
    background: linear-gradient(135deg,
    rgba(0,0,0,0) 45%,
    rgba(0,0,0,.35) 46%,
    rgba(0,0,0,.35) 54%,
    rgba(0,0,0,0) 55%);
    pointer-events: none;
}

.csw-swatch:disabled,
.csw-swatch[aria-disabled="true"] {
    opacity: .35;
    cursor: not-allowed;
    transform: none;
}

.csw-swatch.is-disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* Color squares */
.csw-swatches--color .csw-swatch--color {
    width: 26px;
    height: 26px;
}

/* If hex not found */
.csw-swatch--nohex {
    background: repeating-linear-gradient(
            45deg,
            #eee,
            #eee 6px,
            #ddd 6px,
            #ddd 12px
    ) !important;
    opacity: .35;
}

/* Size buttons */
.csw-swatches--size .csw-swatch--size {
    min-width: 40px;
    height: 30px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.csw-swatches--size .csw-swatch--size span {
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

.csw-swatch--combo {
    background-size: 100% 100%;
}

/* overlay on main image wrapper */
.csw-main-loading {
    position: relative;
}

.csw-main-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.65);
    z-index: 5;
}

.csw-main-loading::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border-radius: 50%;
    border: 3px solid rgba(0,0,0,.18);
    border-top-color: rgba(0,0,0,.55);
    animation: cswSpin 0.8s linear infinite;
    z-index: 6;
}

.csw-main-loading img.wp-post-image {
    opacity: 0 !important;
}

.csw-main-loading::after,
.csw-main-loading::before {
    pointer-events: none;
}

@keyframes cswSpin {
    to { transform: rotate(360deg); }
}


