
.newsletter-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-popup {
    position: relative;
    width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 40px;
    box-sizing: border-box;
    animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s ease;
}

.popup-close:hover {
    color: #333;
}

.popup-content {
    text-align: center;
}

.popup-logo {
    margin-bottom: 20px;
}

.popup-logo img {
    max-width: 150px;
    max-height: 80px;
    width: auto;
    height: auto;
}

.popup-title {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.2;
}

.popup-description {
    font-size: 16px;
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.4;
}

.popup-form {
    margin-bottom: 20px;
}

#popup-email {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 15px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease;
}

#popup-email:focus {
    border-color: #375542;
}

.popup-submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #385543;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.popup-submit-btn:hover {
    background-color: #000000;
}

.popup-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.popup-footer {
    font-size: 12px;
    color: #999;
    text-align: center;
    line-height: 1.4;
}

.popup-footer a {
    color: #375542;
    text-decoration: underline;
}

.popup-footer a:hover {
    text-decoration: none;
}

.popup-success-message {
    font-size: 18px;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.2;
}

.popup-success-message strong {
    color: #375542;
}

.popup-coupon {
    background: #f8f9fa;
    border: 2px dashed #375542;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.coupon-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    text-align: center;
}

.coupon-codes-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-height: 160px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 5px;
}

.coupon-code-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px;
    min-height: 100px;
}

.coupon-code {
    font-size: 16px;
    font-weight: bold;
    color: #375542;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-align: center;
    word-break: break-all;
}

.copy-coupon-btn {
    background: #375542;
    color: white;
    border: none;
    padding: 5px 16px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.copy-coupon-btn:hover {
    background: #2a4032;
}

.start-shopping-btn {
    display: block;
    width: 100%;
    background: #375542;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.2s ease;
}

.start-shopping-btn:hover {
    background: #2a4032;
    color: white;
}

.popup-float-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #385543;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 124, 186, 0.3);
    z-index: 999998;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: float 2s ease-in-out infinite;
}

.popup-float-button:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 124, 186, 0.4);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

body.popup-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .newsletter-popup {
        width: 90%;
        max-width: 400px;
        max-height: 80vh;
        padding: 30px 20px;
        margin: 20px;
    }
    
    .popup-title {
        font-size: 20px;
    }
    
    .popup-description {
        font-size: 13px;
    }
    
    .popup-success-message {
        font-size: 16px;
    }
    
    .coupon-codes-container {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .coupon-code {
        font-size: 14px;
    }
    
    .coupon-label {
        font-size: 11px;
    }
    
    .popup-float-button {
        bottom: 15px;
        left: 15px;
        font-size: 12px;
        padding: 10px 16px;
    }
}

@media (max-width: 400px) {
    .newsletter-popup {
        width: 95%;
        max-height: 75vh;
        padding: 25px 15px;
    }
    
    .popup-title {
        font-size: 18px;
    }
    
    .popup-description {
        font-size: 12px;
    }
    
    .popup-success-message {
        font-size: 14px;
    }
    
    .coupon-code {
        font-size: 13px;
    }
    
    .coupon-label {
        font-size: 10px;
    }
}
