.wcais-hidden-select {
    display: none;
}

.wcais-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.wcais-swatch {
    position: relative;
    padding: 0;
    background: transparent !important;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.wcais-swatch.is-selected {
    border-color: #14AD51;
}

.wcais-swatch.is-disabled {
    cursor: not-allowed;
}
.wcais-swatch.is-disabled .wcais-swatch-img{
    opacity: 0.35;
}
.wcais-swatch-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.wcais-swatch-fallback {
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    overflow-wrap: anywhere;
    justify-content: center;
    color: #212121;
    padding: 4px;
    text-align: center;
    height: 100%;
}

.wcais-tooltip {
    --wcais-shift: 0px;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(calc(-50% + var(--wcais-shift, 0px)));
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 8px;
    width: 150px;
    display: none;
    z-index: 99;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.wcais-tooltip-img {
    height: 80px;
    width: auto;
    margin: auto;
    display: block;
    border-radius: 8px;
}

.wcais-tooltip-label {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: #212121;
    line-height: 1.5;
    text-align: center;
}

.wcais-swatch:hover .wcais-tooltip {
    display: block;
}
