/* Shopee-style variant option chips, replacing the plain <select> dropdown. */
.vdht-swatch-wrap {
    --vdht-swatch-accent: #2f8f4e;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vdht-swatch-select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.vdht-swatch-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vdht-swatch-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 6px;
    border: 1.5px solid #e2e2e2;
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    line-height: 1.3;
    color: #333;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.vdht-swatch-option:not(:has(img)) {
    padding-left: 16px;
}

.vdht-swatch-option img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.vdht-swatch-option:hover {
    border-color: var(--vdht-swatch-accent);
}

.vdht-swatch-option.is-selected {
    border-color: var(--vdht-swatch-accent);
    background: #f2f9f4;
    background: color-mix(in srgb, var(--vdht-swatch-accent) 10%, #fff);
    color: var(--vdht-swatch-accent);
    font-weight: 600;
}

.vdht-swatch-option.is-disabled {
    opacity: .4;
    cursor: not-allowed;
    text-decoration: line-through;
}
