.zoha-swatches{padding:0 10px;display:flex;align-items:center}

/* Color Swatches */
.zoha-swatches.zoha-swatches-color .zoha-swatch {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s;
    color: transparent;
}
.zoha-swatches.zoha-swatches-color .zoha-swatch:hover {
    transform: scale(1.1);
    border-color: #999;
}
.zoha-swatches.zoha-swatches-color .zoha-selected {
    border-color: #333;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #333;
}

/* Image Swatches */
.zoha-swatches.zoha-swatches-image .zoha-swatch {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 50px;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: inline-block;
    cursor: pointer;
    color: transparent;
}
.zoha-swatches.zoha-swatches-image .zoha-swatch:hover {
    border-color: #999;
}
.zoha-swatches.zoha-swatches-image .zoha-selected {
    border-color: #333;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #333;
}

/* Label Swatches */
.zoha-swatches.zoha-swatches-label{gap:5px;flex-flow:row wrap}
.zoha-swatches.zoha-swatches-label  .zoha-swatch{text-align:center;border:1px solid #ddd;padding:5px 10px;cursor: pointer;}
.zoha-swatches.zoha-swatches-label .zoha-selected {
    border-color: #333;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #333;
}

/* Tooltip */
.zoha-swatch[title] {
    position: relative;
}
.zoha-swatch[title]:hover::before {
    content: attr(title);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, calc(-100% - 5px));
    background: #000;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 100;
}
.zoha-swatch[title]:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform:translate(-50%, -50%);
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-top-color: #000;
    z-index: 99;
}

.zoha-swatch:has(.zoha-outofstock-icon){cursor:not-allowed !important;z-index: 0;}
.zoha-outofstock-icon{background:rgba(255, 255, 255, 50%);width:100%;height:100%;color:#f00;font-size:18px;position:absolute;right:0;top:0;display:flex;justify-content:center;align-items:center;z-index:99;}

.zoha-swatch.zoha-outofstock{cursor:not-allowed !important;z-index: 0;opacity:0.5}

/* Vertical orientation support */
.zoha-swatches-shortcode.vertical .zoha-swatches {
    flex-direction: column;
    align-items: flex-start;
}

.zoha-swatches-shortcode.vertical .zoha-swatch {
    margin: 0 0 6px 0;
}

/* More colors indicator */
.more-colors {
    display: inline-block;
    background: #f0f0f0;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    font-size: 12px;
    color: #333;
    font-weight: bold;
    border: 1px solid #ddd;
    transform: translateX(100%);
}