/**
 * UMG Frame Swatches Styles
 */

/* Frame Swatches Container */
.umg-frame-swatches {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
}

.umg-frame-swatches-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.umg-frame-swatches-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Individual Swatch */
.umg-frame-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 70px;
}

.umg-frame-swatch:hover {
    border-color: #999;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.umg-frame-swatch.active {
    border-color: #0073aa;
    background: #f0f8ff;
}

.umg-frame-swatch-preview {
    width: 50px;
    height: 50px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.umg-frame-swatch-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.umg-frame-swatch-preview.no-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #999;
}

.umg-frame-swatch-name {
    font-size: 11px;
    color: #666;
    text-align: center;
    line-height: 1.2;
}

/* Hide when empty */
.umg-frame-swatches:empty {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .umg-frame-swatches {
        padding: 10px;
    }

    .umg-frame-swatch {
        min-width: 60px;
        padding: 6px;
    }

    .umg-frame-swatch-preview {
        width: 40px;
        height: 40px;
    }

    .umg-frame-swatch-name {
        font-size: 10px;
    }
}
