.swatch-tooltip-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.swatch-item {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}

.swatch-thumb {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.swatch-tooltip {
    position: absolute;
    top: -10px;
    /*left: 0;*/
    left: 50%;
    transform: translate(0%, -100%);
    /*transform: translateY(-100%);*/
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease-in-out;
    width: 160px;
    display: none;
}

/* If tooltip hits left edge */
.swatch-tooltip.left-edge {
    left: 50%;
    transform: translate(0, -100%);
}

/* If tooltip hits right edge */
.swatch-tooltip.right-edge {
    left: auto !important;
    right: 50% !important;
    transform: translate(0, -100%) !important;
}

/* Force center when class applied */
.swatch-tooltip.center {
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -100%) !important;
}

.swatch-item:hover .swatch-tooltip {
    opacity: 1;
    display: inline-block;
    pointer-events: auto;
}

.swatch-tooltip h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}

.swatch-tooltip p {
    margin: 3px 0 0;
    font-size: 11px;
    line-height: 1.2;
}
