.el-rul-newsletter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.el-rul-newsletter-content {
    background: #fff;
    text-align: center;
    width: 480px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -50%);
    position: absolute;
    top: 50%;
    left: 50%;
}

.el-rul_dialog_heading_wrapper {
    background-color: var(--rul-primary-color, #0048A1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 3rem;
    padding: 0 1rem;
    color: #fff;
}

.el-rul_dialog_heading {
    font-size: 18px;
    font-weight: 700;
}

.el-rul-newsletter-form {
    text-align: left;
}

.el-rul-logo {
    width: 141px;
    padding: 0;
    margin: 0;
    position: relative;
    top: 13px;
}

.el-rul-description {
    padding: 20px 20px 0 20px;
    text-align: center;
}

.el-rul-newsletter-btn {
    width: 18.75rem;
    height: 3rem;
    padding: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 36px;
    font-weight: 700;
    background: #FFFFFF;
    opacity: 1;
    border-width: 3px;
    border-color: var(--rul-primary-color, #0048A1);
    border-style: solid;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-underline-offset: 0.12em;
    text-shadow: none !important;
}

.el-rul-newsletter-btn:hover {
    background-color: var(--rul-primary-color, #0048A1);
    color: #fff;
}

.el-rul-close-btn {
    font-size: 28px;
    position: absolute;
    right: 20px;
    cursor: pointer;
    color: #fff;
    transition: color 0.3s;
}

.el-rul-newsletter-email-wrapper {
    display: flex;
    flex-direction: column;
    margin: 1.5rem;
}

.el-rul-newsletter-email-address {
    font-size: 14px;
    font-weight: 700;
}

.el-rul-newsletter-el-form {
    display: flex;
}

#el-rul-email {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 70%;
    margin: 10px 0;
}

#el-rul-submit-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: var(--rul-primary-color, #0048A1);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 30%;
    margin: 10px 0 10px 10px;
}

#el-rul-submit-btn.loading {
    cursor: not-allowed;
    opacity: 0.8;
}

.el-rul-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.el-rul-newsletter-success {
    opacity: 0; 
    visibility: hidden; 
    color: green;
}

.el-rul-success-message {
    margin: 0;
}

/* Responsive Design popup button */
@media (max-width: 768px) { 
    .el-rul-newsletter-content {
        width: 60%;
    }

    .el-rul-newsletter-btn {
        width: 50%; /* font-size: 12px;
        padding: 10px; */
    }

    /* #rul-email {
        width: 100%;
        font-size: 15px;
    } */

    #el-rul-submit-btn {
        width: 40%;
        font-size: 15px;
    }

    .el-rul_dialog_heading_wrapper {
        height: auto;
        padding: 10px;
    }

    .el-rul-close-btn {
        font-size: 24px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .el-rul-newsletter-content {
        width: 80% !important;
    }
    
    .el-rul-newsletter-btn {
        width: 100%;
    }

    .el-rul-newsletter-el-form {
        flex-direction: column;
        align-items: center;
    }

    #el-rul-email {
        width: 100%;
        font-size: 14px;
        padding: 8px;
    }

    #el-rul-submit-btn {
        width: 100%;
        margin: 10px 0 0 0;
        font-size: 14px;
        padding: 8px;
    }
}


/*********************************************** Inline newsletter **************************************/

.inline-newsletter-el-content  {
    background: #EDF7FF;
    padding: 2px 17px;
    /* text-align: center; */
    /* width: 636px; */
    width: 100%;
    margin: auto;

}

.inline-dialog-heading-wrapper {
    background-color: var(--rul-primary-color, #0048A1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 3rem;
    padding: 0 1rem;
    color: #fff;
}


.inline-newsletter-el-form {
    text-align: left;
    /* display: flex; */
}


.inline-newsletter-el-heading{
    padding-top: 20px;
    text-align: center;
    font-weight: 800 !important;
    font-size: 30px !important;
}

.inline-el-description{
    padding:0 20px;
    text-align: center;
}
.inline-newsletter-el-description {
    font-size: 20px !important;
    text-align: center;
}


.inline-newsletter-el-email-wrapper {
    display: flex;
    flex-direction: column;
    margin: 1.5rem;
}

.inline-newsletter-el-email-label {
    font-size: 16px;
    font-weight: 700;
}

.inline-newsletter-el-form{
    display: flex;
}

.inline-rul-el-email {
    padding: 10px;
    /* width: 70%; */
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin: 10px 0;
    max-width: 900px;
    width: 100%;

}

.inline-rul-el-btn-text{
    margin-right: 9px;
}

.rul-inline-newsletter-el-success{
    opacity: 0; 
    visibility: hidden; 
    color: green;
}

.rul-inline-el-success-message{
    margin: 0;
}
/*  loader-submit */


#inline-rul-el-submit-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: var(--rul-primary-color, #0048A1);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    /* width: 30%; */
    margin: 10px;
    width: 100%;
    max-width: 150px;
}

#inline-rul-el-submit-btn.loading {
    cursor: not-allowed;
    opacity: 0.8;
}

.inline-rul-el-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Responsive Styles */


@media (max-width: 580px) {
    #inline-rul-el-submit-btn {
        width: 50%;
    }
}

@media (max-width: 480px) {

    .inline-newsletter-el-form {
        flex-direction: column;
        align-items: center;
    }

    #inline-rul-el-submit-btn {
        width: 100%;
        max-width: 325px;
        margin: 0;
    }

    .inline-rul-el-email{
        font-size: 14px;
        padding: 8px;
    }

    .rul-inline-el-success-message{
        font-size: 14px;
    }

}
