.newsletter-popup {
    .modal-dialog {
        background: var(--bs-modal-bg);
        border-radius: var(--bs-border-radius-lg);
        overflow: auto;

        .newsletter-popup-bg {
            background-color: #f7f7f7;
            padding: 0;

            img {
                height: 100%;
                object-fit: cover;
                width: 100%;
            }

            @media (min-width: 768px) and (max-width: 991.98px) {
                width: 100%;
                height: 12rem;
            }
        }

        .modal-content {
            .newsletter-popup-content {
                width: 100%;
                padding: 1.25rem;

                @media (min-width: 768px) {
                    border-top-left-radius: 0;
                    border-bottom-left-radius: 0;
                    padding: 4.5rem 3rem;
                }
            }

            .captcha-disclaimer {
                padding: 5px 10px !important;
            }

            .btn-close {
                top: 1rem;
                inset-inline-end: 1rem;
            }

            .modal-subtitle {
                letter-spacing: 1px;
                font-size: 15px;
            }

            .modal-text {
                font-size: 16px;
            }

            form {
                label {
                    font-size: 14px;
                    font-weight: 500;

                    &.required:after {
                        content: ' *';
                        color: red;
                    }
                }

                input[type=email] {
                    height: 50px;
                    padding: 0 16px;
                }

                input {
                    &:focus {
                        box-shadow: none;
                    }
                }

                button {
                    --bs-btn-padding-y: 0.70rem;
                    display: block;
                    width: 100%;
                    border-radius: var(--bs-border-radius) !important;
                    margin-bottom: 1rem;
                }

                .form-check {
                    margin-bottom: 1rem;
                    display: flex;
                    align-items: center;
                    gap: 0.5rem;

                    input {
                        width: 1.25rem;
                        height: 1.25rem;
                        margin-top: 0;
                    }
                }
            }

            .button-loading {
                border: 1px solid #c4cdd5;
                cursor: default;
                text-shadow: none;
                color: transparent !important;
                position: relative;
                -webkit-transition: border-color 0.2s ease-out;
                transition: border-color 0.2s ease-out;

                &:before {
                    content: '';
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    border-radius: 50%;
                    border-width: 3px;
                    border-style: solid;
                    margin-top: -9px;
                    margin-left: -9px;
                    width: 18px;
                    height: 18px;
                    -webkit-animation: button-loading-spinner 0.7s linear infinite;
                    animation: button-loading-spinner 1s linear infinite;
                    border-color: #ffffff;
                    border-bottom-color: transparent;
                }

                &:hover,
                &:focus,
                &:active {
                    color: transparent;
                }
            }

            .newsletter-message {
                margin: 0 0 20px 0;
                padding: 15px 30px 15px 15px;
                border-left: 5px solid #eeeeee;
                border-radius: 0;
                display: none;
                width: 100%;
                font-size: 85%;

                &.newsletter-success-message {
                    background-color: #c0edf1;
                    border-color: #58d0da;
                    color: #000;
                }

                &.newsletter-error-message {
                    background-color: #faeaa9;
                    border-color: #f3cc31;
                    color: #000;
                }
            }
        }
    }
}

@-webkit-keyframes button-loading-spinner {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes button-loading-spinner {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
