html.cmx-newsletter-pref-open,
html.cmx-newsletter-pref-open body {
    overflow: hidden !important;
}

.cmx-newsletter-account-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 10px 0 14px;
    color: #70685f;
    font-size: 11px;
    line-height: 1.45;
}

.cmx-newsletter-account-summary.is-muted {
    opacity: .72;
}

.cmx-newsletter-account-summary__label {
    font-weight: 700;
}

.cmx-newsletter-account-summary__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.cmx-newsletter-account-summary__chip {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border: 1px solid rgba(111, 74, 58, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .48);
    color: #5f463b;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .02em;
}

.cmx-newsletter-pref-overlay[hidden] {
    display: none !important;
}

.cmx-newsletter-pref-overlay {
    position: fixed;
    z-index: 2147482000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(24, 21, 19, .58);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.cmx-newsletter-pref-dialog {
    position: relative;
    width: min(720px, 100%);
    max-height: min(820px, calc(100vh - 44px));
    overflow: auto;
    padding: 38px;
    border: 1px solid rgba(116, 71, 52, .42);
    border-radius: 22px;
    background: #f6f1e8;
    box-shadow: 0 28px 90px rgba(28, 22, 18, .28);
    color: #282521;
}

.cmx-newsletter-pref-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(82, 65, 54, .24);
    border-radius: 50%;
    background: transparent;
    color: #2f2a26;
    font: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.cmx-newsletter-pref-close:hover,
.cmx-newsletter-pref-close:focus-visible {
    background: rgba(255, 255, 255, .7);
    outline: none;
}

.cmx-newsletter-pref-kicker {
    margin-bottom: 14px;
    color: #a65d49;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .16em;
}

.cmx-newsletter-pref-dialog h2 {
    margin: 0 52px 12px 0;
    color: #2d302d;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -.035em;
}

.cmx-newsletter-pref-intro {
    max-width: 590px;
    margin: 0 0 28px;
    color: #746d66;
    font-size: 14px;
    line-height: 1.65;
}

.cmx-newsletter-pref-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid rgba(69, 58, 50, .18);
    border-left: 1px solid rgba(69, 58, 50, .18);
}

.cmx-newsletter-pref-option {
    position: relative;
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 13px;
    min-height: 118px;
    margin: 0;
    padding: 20px;
    border-right: 1px solid rgba(69, 58, 50, .18);
    border-bottom: 1px solid rgba(69, 58, 50, .18);
    background: rgba(255, 255, 255, .26);
    cursor: pointer;
    transition: background .18s ease;
}

.cmx-newsletter-pref-option:hover {
    background: rgba(255, 255, 255, .58);
}

.cmx-newsletter-pref-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.cmx-newsletter-pref-check {
    position: relative;
    width: 24px;
    height: 24px;
    border: 1.5px solid #6a5c51;
    background: transparent;
}

.cmx-newsletter-pref-option input:focus-visible + .cmx-newsletter-pref-check {
    outline: 2px solid #a65d49;
    outline-offset: 3px;
}

.cmx-newsletter-pref-option input:checked + .cmx-newsletter-pref-check {
    border-color: #a65d49;
    background: #a65d49;
}

.cmx-newsletter-pref-option input:checked + .cmx-newsletter-pref-check::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 7px;
    height: 13px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cmx-newsletter-pref-option-copy {
    display: block;
}

.cmx-newsletter-pref-option-copy strong {
    display: block;
    margin-bottom: 7px;
    color: #332f2b;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.cmx-newsletter-pref-option-copy small {
    display: block;
    color: #79716a;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.55;
}

.cmx-newsletter-pref-message {
    min-height: 23px;
    margin: 16px 0 0;
    color: #6e675f;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
}

.cmx-newsletter-pref-message.is-success {
    color: #3c6b4d;
}

.cmx-newsletter-pref-message.is-error {
    color: #9a3f34;
}

.cmx-newsletter-pref-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(69, 58, 50, .16);
}

.cmx-newsletter-pref-save,
.cmx-newsletter-pref-clear {
    font-family: inherit;
    cursor: pointer;
}

.cmx-newsletter-pref-save {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid #2f2b27;
    border-radius: 10px;
    background: #2f2b27;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.cmx-newsletter-pref-save:hover,
.cmx-newsletter-pref-save:focus-visible {
    background: #a65d49;
    border-color: #a65d49;
    outline: none;
}

.cmx-newsletter-pref-save span {
    font-size: 18px;
}

.cmx-newsletter-pref-clear {
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid rgba(154, 63, 52, .35);
    background: transparent;
    color: #8c4a40;
    font-size: 11px;
    font-weight: 700;
}

.cmx-newsletter-pref-clear:hover,
.cmx-newsletter-pref-clear:focus-visible {
    color: #642b24;
    border-bottom-color: currentColor;
    outline: none;
}

.cmx-newsletter-pref-save:disabled,
.cmx-newsletter-pref-clear:disabled {
    opacity: .55;
    cursor: wait;
}

@media (max-width: 680px) {
    .cmx-newsletter-pref-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .cmx-newsletter-pref-dialog {
        width: 100%;
        max-height: 92vh;
        padding: 28px 20px 24px;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 22px 22px 0 0;
    }

    .cmx-newsletter-pref-dialog h2 {
        font-size: 38px;
    }

    .cmx-newsletter-pref-options {
        grid-template-columns: 1fr;
    }

    .cmx-newsletter-pref-option {
        min-height: 96px;
    }

    .cmx-newsletter-pref-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .cmx-newsletter-pref-save {
        width: 100%;
    }

    .cmx-newsletter-pref-clear {
        align-self: flex-start;
    }
}
