/* Variation Tiles - Clean version */
.variations td.value {
    position: relative;
}

table.variations tr {
    display: flex;
    flex-direction: column;
}

table.variations th.label {
    text-align: left;
    padding-bottom: 0;
}

table.variations td.value {
    padding-top: 0;
}

.variation-tiles-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.variation-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 10px;
    border: 1.5px solid #e2e2e2;
    border-radius: 8px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.variation-tile:hover {
    border-color: #0083c4;
    background: #f0f7fc;
}

.variation-tile.active {
    border-color: #0083c4;
    background: #e8f4fa;
    box-shadow: 0 0 0 1px #0083c4;
}

.variation-tile-label {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: #444;
}

.variation-tile.active .variation-tile-label {
    color: #0083c4;
    font-weight: 600;
}

/* Hide original dropdown */
.variations td.value .variation-tiles-active {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Reset link */
.variations td.value a.reset_variations {
    display: block !important;
    visibility: visible !important;
    margin-top: 6px;
    font-size: 12px;
    color: #0083c4;
}

@media (max-width: 767px) {
    .variation-tiles-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
    .variation-tile {
        padding: 10px 6px;
        border-radius: 6px;
        border-width: 1px;
    }
    .variation-tile-label {
        font-size: 11px;
        line-height: 1.2;
    }
}
