/* Color Swatch Styles for T-Shirt Colors */

/* Main container */
#colorWrapperInside {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 6px;
    margin: 10px 0;
    justify-items: center;
    align-items: start;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Individual color container */
.innerColorContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 50px;
    margin: 0;
    text-align: center;
}

/* Color outer wrapper */
.colorOuter {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}

.colorOuter:hover {
    transform: scale(1.05);
}

/* Color text label */
.colorText {
    display: block;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 65px;
    line-height: 1.1;
    flex-shrink: 0;
}

/* Color inner wrapper */
.colorInnerWrap {
    position: relative;
    width: 35px;
    height: 25px;
    border-radius: 0;
    overflow: hidden;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-left: none !important;
    outline: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* The actual color element */
.colorInner {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-left: none !important;
    outline: none !important;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: none !important;
}

/* Hover effects for color elements */
.colorInner:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Selected state */
.innerColorContainer.isSelectDeco .colorInnerWrap {
    box-shadow: 0 0 0 2px rgba(112, 0, 254, 0.5);
}

.innerColorContainer.isSelectDeco .colorInner {
    box-shadow: none;
}

/* Specific color enhancements */
.color-white {
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #colorWrapperInside {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 4px;
        max-width: 100%;
        margin: 8px 0;
    }
    
    .colorInnerWrap {
        width: 32px;
        height: 22px;
    }
    
    .colorText {
        font-size: 9px;
        max-width: 55px;
        margin-bottom: 3px;
    }
    
    .innerColorContainer {
        min-height: 45px;
    }
}

@media (max-width: 480px) {
    #colorWrapperInside {
        grid-template-columns: repeat(auto-fit, minmax(55px, 1fr));
        gap: 3px;
        margin: 6px 0;
        padding: 0 5px;
    }
    
    .colorInnerWrap {
        width: 28px;
        height: 20px;
    }
    
    .colorText {
        font-size: 8px;
        max-width: 50px;
        margin-bottom: 2px;
    }
    
    .innerColorContainer {
        min-height: 40px;
    }
}

@media (max-width: 360px) {
    #colorWrapperInside {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
        gap: 2px;
        margin: 5px 0;
        padding: 0 3px;
    }
    
    .colorInnerWrap {
        width: 25px;
        height: 18px;
    }
    
    .colorText {
        font-size: 7px;
        max-width: 45px;
        margin-bottom: 2px;
    }
    
    .innerColorContainer {
        min-height: 35px;
    }
}