/**
 * Oceaniclink Cart Stock Checker CSS
 */

/* Modal Overlay */
.oos-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
}

.oos-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
}

.oos-modal-content {
    position: relative;
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    margin: 30px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    z-index: 1000000;
    overflow: hidden;
    padding: 0;
}

.oos-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #666;
    font-size: 30px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    transition: color 0.3s;
    z-index: 1000001;
}

.oos-modal-close:hover {
    color: #d00;
}

.oos-modal-content h2 {
    margin: 0;
    font-size: 20px;
    color: #fff;
    background: linear-gradient(135deg, #d32f2f, #f44336);
    padding: 20px 25px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.oos-message {
    color: #555;
    font-size: 14px;
    margin: 0;
    padding: 15px 25px;
    line-height: 1.5;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

/* Products List */
.oos-products-list {
    max-height: 350px;
    overflow-y: auto;
    margin: 0;
    padding: 20px 25px;
    background: #f8f9fa;
}

.oos-product-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: box-shadow 0.2s;
}

.oos-product-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.oos-product-item:last-child {
    margin-bottom: 0;
}

.oos-product-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    margin-right: 12px;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
}

.oos-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oos-product-info {
    flex-grow: 1;
}

.oos-product-info h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #222;
    line-height: 1.3;
    font-weight: 600;
}

.oos-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.oos-meta span {
    display: inline-block;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    background: #f0f0f0;
    color: #555;
    margin-right: 4px;
    white-space: nowrap;
}

.oos-sku {
    background: #e3f2fd;
    color: #0277bd;
}

.oos-um {
    background: #fff3e0;
    color: #ef6c00;
}

.oos-quantity {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Modal Messages */
.oos-modal-message {
    padding: 12px 25px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    animation: slideDown 0.3s ease-out;
}

.oos-modal-message-success {
    background: #d4edda;
    color: #155724;
    border-top: 1px solid #c3e6cb;
    border-bottom: 1px solid #c3e6cb;
}

.oos-modal-message-error {
    background: #f8d7da;
    color: #721c24;
    border-top: 1px solid #f5c6cb;
    border-bottom: 1px solid #f5c6cb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Actions */
.oos-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 20px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.oos-modal-actions .button {
    flex: 1;
    max-width: 200px;
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.oos-modal-actions .button-primary {
    background: #0073aa;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.3);
}

.oos-modal-actions .button-primary:hover {
    background: #005a87;
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.4);
    transform: translateY(-1px);
}

.oos-modal-actions .button-secondary {
    background: #dc3545;
    color: #fff;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.oos-modal-actions .button-secondary:hover {
    background: #c82333;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
    transform: translateY(-1px);
}

.oos-modal-actions .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .oos-modal-content {
        width: 95%;
        margin: 15px auto;
        max-height: 90vh;
    }
    
    .oos-modal-content h2 {
        font-size: 18px;
        padding: 15px 20px;
    }
    
    .oos-message {
        font-size: 13px;
        padding: 12px 20px;
    }
    
    .oos-products-list {
        padding: 15px 20px;
        max-height: 300px;
    }
    
    .oos-product-item {
        padding: 10px;
    }
    
    .oos-product-image {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }
    
    .oos-product-info h4 {
        font-size: 13px;
    }
    
    .oos-meta {
        gap: 8px;
    }
    
    .oos-meta span {
        font-size: 11px;
        padding: 2px 6px;
    }
    
    .oos-modal-actions {
        flex-direction: column;
        padding: 15px 20px;
        gap: 10px;
    }
    
    .oos-modal-actions .button {
        width: 100%;
        max-width: none;
        font-size: 13px;
        padding: 10px 15px;
    }
}

/* Scrollbar Styling */
.oos-products-list::-webkit-scrollbar {
    width: 6px;
}

.oos-products-list::-webkit-scrollbar-track {
    background: transparent;
}

.oos-products-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.oos-products-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

