/**
 * Restock Popup Modal Styles
 * Version: 1.0.1
 */

/* Overlay - full screen dark background */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

/* Popup content container */
.popup-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close button */
.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 32px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
    font-weight: 300;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-popup:hover {
    color: #000;
}

/* Product header */
.popup-header {
    margin-bottom: 20px;
}

.popup-header .product-image {
    text-align: center;
    margin-bottom: 15px;
}

.popup-header .product-image img {
    max-width: 150px;
    height: auto;
    border-radius: 4px;
}

/* Product info */
.product-manufacturer-title {
    font-size: 12px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.product-title1 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #333;
}

/* Description */
.popup-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 25px;
}

/* Form styling */
.reserve-form {
    margin-top: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.form-group .required {
    color: #e74c3c;
    text-decoration: none;
}

.form-group input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #000;
}

/* Form message */
.form-message {
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.form-message:empty {
    display: none;
}

/* Submit button - Breakdance style */
.submit-button {
    width: 100%;
    --bde-button-custom-border-color: #000;
    --bde-button-custom-border-color-hover: #000;
    --bde-button-custom-background-color: #000;
    --bde-button-custom-background-color-hover: #fff;
    --bde-button-custom-text-color: #FFF;
    --bde-button-custom-text-color-hover: #000;
    
    background: var(--bde-button-custom-background-color);
    color: var(--bde-button-custom-text-color);
    border: 1px solid var(--bde-button-custom-border-color);
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    padding: 20px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: normal;
}

.submit-button:hover {
    background: var(--bde-button-custom-background-color-hover);
    color: var(--bde-button-custom-text-color-hover);
    border-color: var(--bde-button-custom-border-color-hover);
}

/* Reserve button (outside popup) */
.product-out-of-stock {
    margin: 20px 0;
}

.reserve-button {
    cursor: pointer;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .popup-content {
        padding: 20px;
        max-width: 100%;
    }
    
    .popup-header .product-image img {
        max-width: 120px;
    }
    
    .product-title1 {
        font-size: 18px;
    }
    
    .popup-description {
        font-size: 13px;
    }
}
