@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');

.voucher-modal-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.50);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

.voucher-modal-container {
    display: flex;
    width: 507px;
    max-height: 97vh;
    padding-bottom: 32px;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    flex-shrink: 0;
    border-radius: 16px;
    background: #FFF;
    box-shadow: 0px 7px 14px 0px rgba(0, 0, 0, 0.50);
    position: relative;
    overflow-y: auto;
}

.voucher-img-wrapper {
    height: 159px;
    align-self: stretch;
    background: #11111B;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px 16px 0 0;
}

.voucher-img-wrapper img {
    width: 263px;
    height: 159px;
    flex-shrink: 0;
    aspect-ratio: 1/1;
    -o-object-fit: cover;
       object-fit: cover;
}

/* Close button */
.voucher-close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
}

.voucher-content {
    display: flex;
    max-width: 422px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.voucher-content .voucher-main-message {
        align-self: stretch;
        color: #424242;
        font-family: Inter, sans-serif;
        font-size: 20px;
        font-style: normal;
        font-weight: 700;
        line-height: 150%;
    }

.voucher-content .voucher-main-message .voucher-amount {
            color: #F10842;
            font-family: Inter, sans-serif;
            font-size: 20px;
            font-style: normal;
            font-weight: 700;
            line-height: 150%;
        }

.voucher-content .voucher-form-intro {
        align-self: stretch;
        color: #363636;
        font-family: Inter, sans-serif;
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: 150%;
    }

/* Form */
.voucher-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    align-self: stretch;
}
.voucher-form .voucher-input {
        display: flex;
        padding: 8px 12px;
        align-items: center;
        gap: 8px;
        align-self: stretch;
        border-radius: 8px;
        border: 1px solid #BCC0C3;
        background:#FFF;
        transition: border-color 0.2s ease;
    }
.voucher-form .voucher-input.error {
        border-color: #e6003a;
    }
.voucher-form .voucher-newsletter-info {
        align-self: stretch;
        color: #424242;
        font-family: Inter, sans-serif;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 150%;
    }

.voucher-checkbox-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.voucher-checkbox-inner-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.voucher-checkbox-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1px solid #BCC0C3;
    background:#FFF;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    position: relative;
}

.voucher-checkbox-row input[type="checkbox"]:checked {
    background:#085EF1;
    border-color:#085EF1;
}

.voucher-checkbox-row input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.voucher-checkbox-row.error {
    border: 1px solid #e6003a;
    border-radius: 8px;
    padding: 8px;
}

.voucher-submit-btn {
    display: flex;
    height: 40px;
    padding: 8px 12px 8px 16px;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    border-radius: 8px;
    background: #F10842;
}

.voucher-submit-btn .submit-btn-text {
        color: #FFF;
        font-family: Inter, sans-serif;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 150%;
        text-align: center;
        width: 100%;
    }

.voucher-submit-btn:hover {
    background: #c4002f;
}

/* Responsive */
@media (max-width: 600px) {
    .voucher-modal-container {
        width: 90%;
        max-height: 90vh;
        gap: 24px;
    }

    .voucher-content {
        padding: 0 16px;
    }
}

.form-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}