/* Product Variation Links - Frontend Styles */

.pvl-variation-swatches {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pvl-title-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.pvl-title {
    margin-right: 8px;
}

.pvl-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background-color: #e3f2fd;
    color: #1976d2;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 500;
    cursor: help;
    transition: all 0.2s ease;
}

.pvl-info-icon:hover {
    background-color: #1976d2;
    color: white;
}

.pvl-swatches-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pvl-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 40px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
    border: 1px solid #cccccc;
    border-radius: 4px;
    background-color: #ffffff;
    color: #333333;
    padding: 8px;
}

.pvl-swatch:hover {
    text-decoration: none;
}

.pvl-swatch-current {
    cursor: default !important;
    pointer-events: none !important;
    background-color: #e3f2fd !important;
    border-color: #1976d2 !important;
    color: #1976d2 !important;
}

.pvl-swatch-current:hover {
    cursor: default !important;
    background-color: #e3f2fd !important;
    border-color: #1976d2 !important;
    color: #1976d2 !important;
}

.pvl-swatch-value {
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pvl-swatches-container {
        gap: 6px;
    }
    
    .pvl-swatch {
        min-width: 70px;
        height: 36px;
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .pvl-title-row {
        font-size: 13px;
    }
}

/* Loading state */
.pvl-loading {
    opacity: 0.6;
    pointer-events: none;
}

.pvl-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1976d2;
    border-radius: 50%;
    animation: pvl-spin 1s linear infinite;
}

@keyframes pvl-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
