/* Color Swatches Plugin Styles */

.color-swatches-container {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.color-swatches-container.layout-vertical {
    flex-direction: column;
    align-items: stretch;
    max-width: 300px;
}

.color-swatches-container.layout-horizontal {
    flex-direction: row;
}

.color-swatch-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-swatch-button:hover {
    border-color: #4a90e2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.color-swatch-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-swatch-button.selected {
    border-color: #4a90e2;
    background: #f8faff;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.swatch-color {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    display: block;
}

.swatch-name {
    color: #333333;
    margin: 0;
    line-height: 1.4;
    flex-grow: 1;
}

/* Size variations */
.color-swatch-button.swatch-small {
    padding: 6px 12px;
    font-size: 12px;
    gap: 8px;
}

.color-swatch-button.swatch-small .swatch-color {
    width: 18px;
    height: 18px;
}

.color-swatch-button.swatch-medium {
    padding: 8px 16px;
    font-size: 14px;
    gap: 10px;
}

.color-swatch-button.swatch-medium .swatch-color {
    width: 24px;
    height: 24px;
}

.color-swatch-button.swatch-large {
    padding: 12px 20px;
    font-size: 16px;
    gap: 12px;
}

.color-swatch-button.swatch-large .swatch-color {
    width: 32px;
    height: 32px;
}

/* Selected color display */
.selected-color-display {
    margin-top: 15px;
    padding: 12px 16px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #4a90e2;
}

.selected-color-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    color: #555555;
}

.selected-color-text strong {
    color: #333333;
}

/* Responsive design */
@media (max-width: 768px) {
    .color-swatches-container.layout-horizontal {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
    }
    
    .color-swatch-button {
        justify-content: flex-start;
    }
}

/* Accessibility improvements */
.color-swatch-button:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
}

/* Animation for color selection */
@keyframes colorSelect {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.color-swatch-button.animate-select {
    animation: colorSelect 0.3s ease-in-out;
} 