/**
 * Enhanced Color Swatch Styles
 * 
 * Provides double border system and smooth transitions for color swatches.
 * Works in conjunction with color-swatch-enhancements.js
 */

.osmani-enhanced-swatch {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: visible !important;
    cursor: pointer;
    background-color: #ffffff !important;
    color: #000000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.osmani-enhanced-swatch:hover {
    transform: scale(1.1) !important;
    z-index: 10 !important;
}

.osmani-enhanced-swatch.active,
.osmani-enhanced-swatch.selected {
    transform: scale(1.05) !important;
    z-index: 5 !important;
}

/* Selection Indicator - Centered */
.osmani-enhanced-swatch::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 0, 0, 0.05); /* Subtle dark overlay */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    z-index: -1;
    pointer-events: none;
    display: block !important;
}

.osmani-enhanced-swatch:hover::before {
    width: 120%;
    height: 120%;
}

/* Hide original theme dot if it exists */
.color-dot-single::before {
    display: none !important; 
}

/* Ensure text is always on top and readable */
.osmani-enhanced-swatch .color-text {
    position: relative;
    z-index: 2;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    max-width: 100%;
    overflow: hidden;
    text-overflow: clip;
    white-space: normal;
    display: block;
    pointer-events: none;
}
