.newsletter-page {
    min-height: min(760px, calc(100vh - 180px));
    display: grid;
    place-items: center;
    padding: 72px 24px 96px;
    background: #f5f4f0;
}

/* common.css resets the first section's padding through #mobile_menu + * */
#mobile_menu + .newsletter-page {
    padding-top: 104px;
}

.newsletter-panel {
    position: relative;
    width: min(100%, 640px);
    padding: clamp(34px, 7vw, 66px) !important;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e7e5df;
    box-shadow: 0 22px 70px rgba(32, 29, 23, .07);
}

.newsletter-mark {
    position: absolute;
    top: 25px;
    right: 30px;
    color: #e6e4df;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.25;
    text-align: right;
}

.newsletter-eyebrow {
    margin: 0 0 17px;
    color: #8a877f;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .19em;
}

.newsletter-panel h1 {
    margin: 0;
    color: #171714;
    font-size: clamp(34px, 7vw, 48px);
    font-weight: 500;
    letter-spacing: -.065em;
    line-height: 1.1;
}

.newsletter-description {
    max-width: 440px;
    margin: 17px 0 0;
    color: #77766f;
    font-size: 14px;
    line-height: 1.85;
    word-break: keep-all;
}

.newsletter-settings {
    margin-top: 43px;
    padding-top: 25px;
    border-top: 1px solid #e9e8e3;
}

.newsletter-email-row {
    position: relative;
}

.newsletter-email-row input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 56px;
    padding: 0 64px 0 18px;
    border: 1px solid #deddd7;
    border-radius: 999px;
    outline: none;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: 14px;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, letter-spacing .2s ease;
}

.newsletter-email-row input:focus {
    border-color: #77766f;
    box-shadow: 0 0 0 3px rgba(39, 39, 32, .055);
}

.newsletter-email-row input:disabled {
    background: #f5f4f0;
    color: #65645e;
    opacity: 1;
}

.newsletter-email-row input.is-code {
    letter-spacing: .42em;
    font-size: 17px;
    animation: newsletter-input-swap .2s ease both;
}

@keyframes newsletter-input-swap {
    from { opacity: .35; transform: translateX(8px); }
    to { opacity: 1; transform: translateX(0); }
}

.newsletter-email-row button {
    position: absolute;
    top: 7px;
    right: 7px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #24241f;
    color: #fff;
    font: inherit;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease, opacity .18s ease;
}

.newsletter-email-row button:hover:not(:disabled) {
    background: #55544d;
    transform: scale(1.04);
}

.newsletter-email-row button:disabled {
    cursor: default;
    opacity: .45;
}

.newsletter-email-row button[hidden] {
    display: none;
}

.newsletter-message {
    min-height: 22px;
    margin-top: 10px;
    color: #77766f;
    font-size: 12px;
    line-height: 1.6;
}

.newsletter-message.is-error {
    color: #a33a32;
}

.newsletter-message.is-success {
    color: #526a4d;
}

.newsletter-subscription-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 10px;
    padding-top: 23px;
    border-top: 1px solid #eeede9;
}

.newsletter-subscription-row > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.newsletter-subscription-row strong {
    color: #22221d;
    font-size: 14px;
    font-weight: 600;
}

.newsletter-subscription-row span {
    color: #92918a;
    font-size: 11px;
    line-height: 1.5;
}

.newsletter-switch {
    position: relative;
    display: inline-flex;
    flex: none;
    width: 54px;
    height: 31px;
    cursor: pointer;
}

.newsletter-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.newsletter-switch span {
    position: absolute;
    inset: 0;
    border: 1px solid #d6d5cf;
    border-radius: 20px;
    background: #e7e6e1;
    transition: background .2s ease, border-color .2s ease, opacity .2s ease;
}

.newsletter-switch span::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
    content: "";
    transition: transform .2s ease;
}

.newsletter-switch input:checked + span {
    border-color: #272720;
    background: #272720;
}

.newsletter-switch input:checked + span::after {
    transform: translateX(23px);
}

.newsletter-switch input:focus-visible + span {
    outline: 2px solid #8b897f;
    outline-offset: 3px;
}

.newsletter-switch input:disabled + span {
    cursor: not-allowed;
    opacity: .48;
}

.newsletter-footnote {
    margin: 20px 0 0;
    color: #aaa9a3;
    font-size: 10px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .newsletter-page {
        min-height: 0;
        padding: 40px 16px 56px;
    }

    #mobile_menu + .newsletter-page {
        padding-top: 72px;
    }

    .newsletter-panel {
        padding: 35px 24px 32px;
    }

    .newsletter-mark {
        top: 21px;
        right: 23px;
        font-size: 10px;
    }

    .newsletter-description {
        font-size: 13px;
    }

    .newsletter-settings {
        margin-top: 32px;
        padding-top: 21px;
    }

}
