.newsletter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000c2;
    z-index: 9999;
    box-sizing: border-box;
    padding: 10px;
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.newsletter-modal-open {
    width: 100%;
    overflow: hidden;
}

.newsletter-modal.newsletter-modal-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

.newsletter-modal.newsletter-modal-d-none {
    display: none;
    transition: opacity 0.3s ease;
}

.newsletter-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: var(--color-yellow);
    color: var( --color-darkGray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

.newsletter-modal-content {
    width: 90%;
    max-width: 425px;
    max-height: 630px;
    background: var(--color-white);
    border-radius: 26px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 16px;
}

.newsletter-modal-media {
    width: 100%;
    border-radius: 5px;
    background: url('../i/newsletter-modal.jpg');
    background-position: center;
    z-index: 1;
    position: relative;
    border-radius: 16px 16px 0 16px;
}

.newsletter-modal-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    padding: 15px;
    position: relative;
    z-index: 2;
}

.newsletter-modal-media:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #0000008a;
    border-radius: 16px;
}

.newsletter-modal-header {
    display: flex;
    flex-direction: column;
}

.newsletter-modal-brand {
    width: 170px;
    height: 65px;
}

.newsletter-brand-img {
    width: 100%;
    height: 100%;
}

.newsletter-modal-title {
    max-width: 320px;
    color: var(--color-white);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.newsletter-modal-body {
    z-index: 2;
    border-radius: 26px;
}

.newsletter-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 0 0 24px 24px;
}

    .newsletter-fields input {
        width: 100%;
        height: 40px;
        border: 0;
        border-radius: 999px;
        background: var(--color-white);
        color: var(--color-darkGray);
        padding: 0 20px;
        border: 1px solid var(--color-darkGray);
    }

        .newsletter-fields input::placeholder {
            color: var(--color-darkGray);
        }

.newsletter-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--color-white)fff;
    padding: 0 0 10px 0;
}

.newsletter-note {
    color: var(--color-darkGray);
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
    width: 100%;
    padding: 5px 30px;
}

.newsletter-note-highlight {
    font-weight: 600;
}

.newsletter-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    height: 35px;
    width: 192px;
    border: 0;
    border-radius: 999px;
    background: var(--color-yellow);
    color: var(--color-darkGray);
    cursor: pointer;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    margin-right: 20px;
    margin-left: auto;
    line-height: normal;
}

.newsletter-consents {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--color-yellow);
    border-radius: 0 0px 16px 16px;
    padding: 10px;
}

.newsletter-check {
    color: var(--color-darkGray);
    cursor: pointer;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
}

.newsletter-check-text {
    color: var(--color-darkGray);
    font-style: normal;
    font-size: 12px;
    font-weight: 500;
    line-height: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.newsletter-check-input {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 2px;
    border: 1px solid var(--color-beige);
    background: linear-gradient(180deg, #e5e5e5 0%, #d1d1d1 100%);
}

    .newsletter-check-input:hover {
        border-color: var(--color-yellow);
    }

    .newsletter-check-input:checked {
        position: relative;
    }

        .newsletter-check-input:checked::after {
            content: '';
            position: absolute;
            top: 1px;
            left: 6px;
            width: 6px;
            height: 12px;
            border: solid var(--color-darkGray);
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.newsletter-consent-popups.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.newsletter-consent-box {
    background: pink;
    position: absolute;
    z-index: 999999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.newsletter-consent-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000c2;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease;
    border-radius: 26px;
}

    .newsletter-consent-layer.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

.newsletter-consent-box {
    width: 100%;
    background: var(--color-white);
    border-radius: 16px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    box-sizing: border-box;
}

.newsletter-consent-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

.newsletter-consent-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-darkGray);
    width: calc(100% - 30px);
}

.newsletter-consent-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: var(--color-yellow);
    color: var(--color-darkGray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

.newsletter-consent-body {
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-darkGray);
    margin: 0 0 10px 0;
    padding: 0 16px 0 0;
    max-height: 382px;
    overflow: auto;
}

    .newsletter-consent-body p {
        margin: 0 0 12px;
        font-size: 12px;
    }

    .newsletter-consent-body a {
        color: var(--color-dark);
        text-decoration: none;
    }

    .newsletter-consent-body::-webkit-scrollbar {
        width: 3px;
    }

    .newsletter-consent-body::-webkit-scrollbar-track {
        background: #eee;
    }

    .newsletter-consent-body::-webkit-scrollbar-thumb {
        background: var(--color-yellow);
        border-radius: 3px;
    }

        .newsletter-consent-body::-webkit-scrollbar-thumb:hover {
            background: var(--color-yellow);
        }

.newsletter-consent-accept {
    position: absolute;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--color-lightGray);
    border-radius: 22px;
    cursor: pointer;
    height: 40px;
    background: var(--color-white);
    padding: 0 15px;
    font-size: 14px;
}

@media (min-width: 375px) {
    .newsletter-modal-brand {
        width: 190px;
        height: 85px;
    }

    .newsletter-modal-title {
        font-size: 24px;
    }

    .newsletter-fields input {
        height: 50px;
    }

    .newsletter-check-text {
        font-size: 14px;
    }
}

@media (min-width: 768px) {
    .newsletter-modal {
        padding: 30px;
        align-items: center;
        justify-content: center;
    }

    .newsletter-modal-close,
    .newsletter-consent-close {
        right: 8px;
        top: 8px;
    }

    .newsletter-modal-content {
        width: 100%;
        max-width: 760px;
        min-height: 270px;
        max-height: unset;
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        overflow: hidden;
        border-radius: 16px;
    }

    .newsletter-modal-media {
        width: 100%;
        min-height: 270px;
        background-size: cover;
        background-position: center;
        position: relative;
        background: var(--color-white)f;
    }

        .newsletter-modal-media:before {
            display: none;
        }

    .newsletter-modal-overlay {
        min-height: 270px;
        padding: 0px 0px 0 0px;
        gap: 14px;
        position: relative;
        flex-direction: row;
    }

    .newsletter-modal-brand {
        width: 190px;
        height: 86px;
        z-index: 2;
    }

    .newsletter-brand-img {
        object-fit: contain;
    }

    .newsletter-modal-title {
        max-width: 250px;
        font-size: 31px;
        line-height: 1.1;
        font-weight: 500;
        z-index: 2;
        -webkit-line-clamp: 4;
    }

    .newsletter-modal-header {
        width: 50%;
        border-radius: 0 26px 0 0;
        gap: 10px;
        padding: 30px 0 0 50px;
        background: url('../i/newsletter-modal.jpg');
        position: relative;
    }

        .newsletter-modal-header:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #0000008a;
            border-radius: 0 26px 0 0;
            z-index: 1;
        }

    .newsletter-fields {
        width: 50%;
        border-radius: 0;
        padding: 20px 50px 20px 10px;
    }

        .newsletter-fields input {
            height: 42px;
            padding: 0 18px;
            font-size: 13px;
        }

    .newsletter-modal-body {
        z-index: 3;
        border-radius: 0 0 16px 16px;
    }

    .newsletter-footer {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 20px;
        padding: 10px 16px;
        position: absolute;
        bottom: 120px;
        right: 0;
    }

    .newsletter-note {
        max-width: 170px;
        padding: 0;
        margin: 0;
        color: var(--color-darkGray);
    }

    .newsletter-submit {
        width: 132px;
        height: 50px;
        margin: 0;
        font-size: 13px;
        gap: 8px;
        flex: 0 0 auto;
    }

    .newsletter-consents {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 20px;
        padding: 10px 30px 12px 30px;
        border-radius: 0 0 16px 16px;
    }

    .newsletter-check {
        width: calc(50% - 10px);
        font-size: 10px;
        line-height: 13px;
        gap: 6px;
        align-items: center;
    }

    .newsletter-consent-body {
        max-height: 230px;
    }

        .newsletter-consent-body p {
            font-size: 16px;
        }
}

@media (min-width: 1440px) {
    .newsletter-modal-content {
        max-width: 940px;
    }

    .newsletter-fields {
        padding: 40px 50px 120px 10px;
    }

        .newsletter-fields input {
            height: 54px;
            font-size: 18px;
        }

    .newsletter-footer {
        bottom: 100px;
        justify-content: space-around;
        right: 40px;
    }

    .newsletter-note {
        max-width: 150px;
        margin-right: 20px;
    }

    .newsletter-submit {
        font-size: 18px;
        width: 180px;
        gap: 20px;
    }

    .newsletter-modal-close,
    .newsletter-consent-close {
        right: 15px;
        top: 15px;
    }

    .newsletter-consent-body {
        max-height: 295px;
    }

    .newsletter-consent-accept {
        font-size: 18px;
    }

    .newsletter-modal-title {
        -webkit-line-clamp: 5;
        max-width: 370px;
    }
}
