/* Modal Overlay */
#ocs-modal-overlay {
    background-color: rgba(0, 0, 0, 0.6); /* Fixed spelling */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    animation: fadeIn 0.3s ease-in;
}

.ocs-loading {
    padding: 30px;
    text-align: center;
}
.ocs-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid rgba(0,0,0,0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: ocs-spin 1s linear infinite;
}
@keyframes ocs-spin {
    to { transform: rotate(360deg); }
}

/* Modal Container */
#ocs-modal-colours {
    background-color: #ffffff !important; /* Increased specificity and fixed spelling */
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    max-width: 680px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 25px;
    position: relative;
    z-index: 99999; /* Ensure it’s above the overlay */
}

/* Modal Title */
.ocs-swatch-title {
    font-size: 1.6em;
    margin: 0 0 20px;
    color: #2c3e50;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Search Bar */
.ocs-colour-search {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    background-color: #f9f9f9; /* Fixed spelling */
    transition: border-color 0.3s, box-shadow 0.3s; /* Fixed spelling */
}

.ocs-colour-search:focus {
    border-color: #2980b9; /* Fixed spelling */
    box-shadow: 0 0 8px rgba(41, 128, 185, 0.3);
    outline: none;
}

/* Swatch List Container */
.ocs-swatch-list {
    padding: 15px;
}

/* Swatch Grid */
.ocs-swatch-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

/* Individual Swatches */
.ocs-swatch {
    width: 80px!important;
    height: 80px!important;
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
    background-size: cover;
    background-position: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #ddd;
}

.ocs-swatch:hover {
    transform: scale(1.15);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.ocs-swatch-selected {
    transform: scale(1.2);
    box-shadow: 0 0 0 3px #2c3e50, 0 0 0 5px #fff;
}

.ocs-swatch-unavailable {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Open Modal Button */
.ocs-open-modal {
    background-color: #3498db; /* Fixed spelling */
    color: #ffffff; /* Fixed spelling */
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Fixed spelling */
    display: inline-block;
}

.ocs-open-modal:hover {
    background-color: #2980b9; /* Fixed spelling */
    transform: translateY(-2px);
}

.ocs-open-modal.disabled {
    background-color: #95a5a6; /* Fixed spelling */
    cursor: not-allowed;
    transform: none;
}

/* Selected Colour Display (on button) */
.ocs-selected-colour-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ocs-selected-colour-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    background-size: cover;
    background-position: center;
    border: 1px solid #fff;
}

.ocs-selected-colour-name {
    font-weight: 500;
}

/* Error Message */
.ocs-error-message {
    background-color: #ffebee; /* Fixed spelling */
    color: #c0392b; /* Fixed spelling */
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 0.9em;
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    #ocs-modal-colours {
        width: 95%;
        padding: 15px;
    }

    .ocs-swatch-title {
        font-size: 1.4em;
    }

    .ocs-colour-search {
        padding: 10px;
        font-size: 0.9em;
    }

    .ocs-swatch {
        width: 40px;
        height: 40px;
    }

    .ocs-open-modal {
        padding: 10px 20px;
        font-size: 1em;
    }
	
	.ocs-size-title {
    font-size: 1em;
    margin: 15px 0 10px;
    font-weight: 600;
    display: block;
    width: 100%;
	color: #000;
}
	
/* Mobile-specific optimizations */
@media (max-width: 768px) {
    .ocs-swatch {
        width: 40px !important;
        height: 40px !important;
    }
    
    /* Disable animations on mobile for better performance */
    .ocs-swatch {
        transition: none !important;
    }
    
    /* Simplify modal for mobile */
    #ocs-modal-colours {
        max-height: 90vh;
        padding: 15px;
    }
    
    /* Larger touch targets */
    .ocs-swatch {
        margin: 5px;
    }

	
	/* Disclaimer Styling */
.ocs-disclaimer {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 5px;
    padding: 12px 15px;
    margin: 15px 15px;
    color: #856404;
    font-size: 13px;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    animation: fadeIn 0.3s ease-in;
}

.ocs-disclaimer strong {
    color: #856404;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 3px;
}

.ocs-disclaimer-icon {
    display: inline-block;
    margin-right: 8px;
    font-weight: bold;
    color: #f39c12;
    font-size: 16px;
    vertical-align: middle;
}

/* Ensure disclaimer is visible in modal */
#ocs-modal-colours .ocs-disclaimer {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    margin-bottom: 15px;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .ocs-disclaimer {
        background-color: #664d00;
        border-color: #997404;
        color: #ffecb5;
    }
    
    .ocs-disclaimer strong {
        color: #ffd966;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .ocs-disclaimer {
        font-size: 12px;
        padding: 10px 12px;
        margin: 10px 10px;
    }
    
    .ocs-disclaimer-icon {
        font-size: 14px;
    }
}

/* Ensure disclaimer appears above swatches */
.ocs-swatch-list {
    position: relative;
    margin-top: 0;
}

/* Animation for disclaimer appearance */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ocs-disclaimer {
    animation: slideDown 0.4s ease-out;
}
	
	
}