.newsletter-section fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.newsletter-section__layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 16px;
}

.newsletter-section__all-column {
    display: flex;
    flex-direction: column;
}

.newsletter-section__programs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.newsletter-section__programs--grid {
    grid-template-columns: repeat(3, 1fr);
}

.newsletter-section__programs--grid .form-check__with-bg,
.newsletter-section__programs--grid .program-tile,
.newsletter-section__tile--compact {
    height: 80px;
    min-height: 80px;
    max-height: 80px;
    overflow: hidden;
}

.newsletter-section__program--tall {
    height: 80px;
    min-height: 80px;
    max-height: 80px;
    overflow: hidden;
}

.newsletter-section__label--bottom {
    position: relative;
    left: 0;
    bottom: 0;
    max-width: 100%;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.program-tile--colored {
    background-color: var(--program-color) !important;
}

.program-tile--colored:hover,
.program-tile--colored:focus {
    background-color: var(--program-color) !important;
    filter: brightness(0.9);
}

.program-tile--colored .form-check__label {
    color: #ffffff !important;
}

.program-tile--light-bg .form-check__label {
    color: var(--feux-blue-3, #003399) !important;
}

.program-tile.is-invalid {
    border: 2px solid #dc3545 !important;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.5);
}

.consent-no-checkbox {
    padding-left: 26px;
}

.newsletter-consents label {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

@media (min-width: 1200px) {
    .newsletter-section__programs {
        grid-template-columns: repeat(2, 1fr);
    }
    .newsletter-section__programs--grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .newsletter-section__programs {
        grid-template-columns: repeat(2, 1fr);
    }
    .newsletter-section__programs--grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .newsletter-section__programs {
        grid-template-columns: repeat(2, 1fr);
    }
    .newsletter-section__programs--grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .newsletter-section__layout {
        grid-template-columns: 1fr;
    }
    .newsletter-section__programs {
        grid-template-columns: repeat(2, 1fr);
    }
    .newsletter-section__programs--grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .newsletter-section__layout {
        grid-template-columns: 1fr;
    }
    .newsletter-section__programs {
        grid-template-columns: 1fr;
    }
    .newsletter-section__programs--grid {
        grid-template-columns: 1fr;
    }
}

.newsletter-form .newsletter-form__row {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.newsletter-form__email-row {
    width: 66.666667%;
    max-width: 75%;
}

.newsletter-section-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 9fr) minmax(0, 3fr);
    gap: 24px;
    width: 100%;
}

.newsletter-section-row__content {
    min-width: 0;
}

.newsletter-section-row__sidebar {
    position: absolute;
    top: 0;
    right: 0;
    width: 25%;
    z-index: 10;
}

.newsletter-section-row__sidebar:empty {
    display: none;
}

.newsletter-form__bottom {
    width: 66.666667%;
    max-width: 75%;
}

@media (min-width: 1200px) {
    .newsletter-form__email-row {
        width: 75%;
    }
    
    .newsletter-form__bottom {
        width: 75%;
    }
}

@media (max-width: 991.98px) {
    .newsletter-form__email-row {
        width: 100%;
        max-width: 100%;
    }
    
    .newsletter-section-row {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .newsletter-section-row__sidebar {
        position: static;
        width: 100%;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .newsletter-form__bottom {
        width: 100%;
        max-width: 100%;
    }
}
