/* Out of Stock Modal Styles - All classes prefixed with oos_ for namespace isolation */

/* Modal Overlay */
.oos-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.oos-modal-overlay.active {
    display: block;
    opacity: 1;
}

/* Modal Container */
.oos-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    opacity: 0;
    transition: all 0.3s ease;
}

.oos-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Modal Header */
.oos-modal-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.oos-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.oos-modal-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #f59e0b;
}

/* Modal Body */
.oos-modal-body {
    padding: 24px;
    text-align: center;
}

.oos-modal-message {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 1rem;
}

/* Modal Footer */
.oos-modal-footer {
    padding: 16px 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.oos-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    outline: none;
    min-width: 120px;
}

.oos-btn-primary {
    background-color: #38bdf8;
    color: white;
}

.oos-btn-primary:hover {
    background-color: #0ea5e9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.oos-btn-primary:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.oos-btn-secondary {
    background-color: white;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.oos-btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

/* Responsive Design */
@media (max-width: 640px) {
    .oos-modal {
        width: 95%;
        margin: 20px;
    }

    .oos-modal-header,
    .oos-modal-body,
    .oos-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .oos-modal-footer {
        flex-direction: column;
    }

    .oos-btn {
        width: 100%;
    }
}

/* Animation for modal entrance */
.oos-modal-enter {
    animation: oos-modal-enter 0.3s ease-out;
}

@keyframes oos-modal-enter {
    0% {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Focus styles for accessibility */
.oos-btn:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}
