/*
|--------------------------------------------------------------------------
| Hide the complete yellow information bar for active subscribers
|--------------------------------------------------------------------------
*/

html.newsletter-subscriber-active
[data-newsletter-topbar],
[data-newsletter-topbar][hidden] {
    display: none !important;
}

/*
|--------------------------------------------------------------------------
| Word Intelligence newsletter popup
|--------------------------------------------------------------------------
*/

/*
|--------------------------------------------------------------------------
| Newsletter top-bar prompt
|--------------------------------------------------------------------------
*/

.newsletter-topbar-prompt[hidden] {
    display: none !important;
}

.newsletter-topbar-prompt__link {
    color: inherit;
    font-weight: 750;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    cursor: pointer;
}

.newsletter-topbar-prompt__link:hover {
    color: #111111;
    text-decoration-thickness: 2px;
}

.newsletter-topbar-prompt__link:focus-visible {
    border-radius: 3px;
    outline: 2px solid rgba(17, 17, 17, 0.72);
    outline-offset: 3px;
}


.newsletter-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.newsletter-popup-open {
    overflow: hidden;
}

.newsletter-popup,
.newsletter-popup * {
    box-sizing: border-box;
}

.newsletter-popup[hidden] {
    display: none !important;
}

/*
|--------------------------------------------------------------------------
| Newsletter popup overlay
|--------------------------------------------------------------------------
*/

.newsletter-popup {
    position: fixed;
    inset: 0;
    z-index: 18000;

    display: grid;
    place-items: center;

    padding: 20px;

    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    transition:
        opacity 190ms ease,
        visibility 190ms ease;
}

.newsletter-popup.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.newsletter-popup__backdrop {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    padding: 0;
    border: 0;

    background:
        rgba(18, 20, 19, 0.62);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    cursor: default;
}

/*
|--------------------------------------------------------------------------
| Physical popup dimensions
|--------------------------------------------------------------------------
|
| No scale() is used.
|
| The width, padding, text and controls are all set to
| their real displayed sizes.
|
*/

.newsletter-popup__dialog {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns:
        minmax(0, 1.36fr)
        minmax(235px, 0.84fr);

    width:
        min(
            760px,
            calc(100vw - 40px)
        );

    max-height:
        calc(100dvh - 40px);

    overflow: hidden;

    border:
        1px solid
        rgba(120, 120, 120, 0.16);

    border-radius: 18px;

    background: #f8f8f8;
    color: #111111;

    box-shadow:
        0 28px 76px
        rgba(0, 0, 0, 0.3);

    opacity: 0;

    /*
     * This is only a small entrance movement.
     * There is no visual scaling.
     */
    transform:
        translateY(14px);

    transition:
        opacity 260ms ease,
        transform 260ms ease;
}

.newsletter-popup.is-open
.newsletter-popup__dialog {
    opacity: 1;

    transform:
        translateY(0);
}

/*
|--------------------------------------------------------------------------
| Content
|--------------------------------------------------------------------------
*/

.newsletter-popup__content {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    justify-content: center;

    overflow-y: auto;

    padding:
        5rem
        6rem;

    background: #f8f8f8;
}

/*
|--------------------------------------------------------------------------
| Small envelope icon
|--------------------------------------------------------------------------
*/

.newsletter-popup__icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 9px;
    color: #111111;

    font-size: 20px;
}

.newsletter-popup__icon i {
    position: static;
    width: auto;
}

/*
|--------------------------------------------------------------------------
| Text
|--------------------------------------------------------------------------
*/

.newsletter-popup__eyebrow {
    margin:
        0
        0
        9px;

    color: currentColor;

    font-family:
        "Inter",
        sans-serif;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.065em;
    line-height: 1.3;
    text-transform: uppercase;
}

.newsletter-popup__title {
    max-width: 420px;

    margin: 0;

    color: currentColor;

    font-family:
        "PT Serif",
        Georgia,
        serif;

    font-size:
        clamp(
            40px,
            4vw,
            50px
        );

    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.02;
}

.newsletter-popup__description {
    max-width: 440px;

    margin:
        17px
        0
        21px;

    color: #696969;

    font-family:
        "Inter",
        sans-serif;

    font-size: 14px;
    line-height: 1.58;
}

/*
|--------------------------------------------------------------------------
| Form
|--------------------------------------------------------------------------
*/

.newsletter-popup__form {
    width: 100%;
}

.newsletter-popup__field {
    position: relative;

    display: flex;
    align-items: center;

    margin-bottom: 21px;

    border-bottom:
        1px solid
        rgba(17, 17, 17, 0.68);
}

.newsletter-popup__field input {
    width: 100%;

    padding:
        11px
        36px
        11px
        0;

    border: 0;

    background: transparent;
    color: currentColor;

    font:
        400
        15px/1.4
        "Inter",
        sans-serif;

    outline: none;
}

.newsletter-popup__field input::placeholder {
    color: #929292;
}

.newsletter-popup__field input:focus-visible {
    outline: none;
}

.newsletter-popup__field:focus-within {
    border-bottom-color: #f9a825;
}

.newsletter-popup__field-icon {
    position: absolute;
    right: 2px;

    width: auto;

    color: #888888;

    font-size: 15px;

    pointer-events: none;
}

/*
|--------------------------------------------------------------------------
| Subscribe button
|--------------------------------------------------------------------------
*/

.newsletter-popup__submit {
    display: inline-flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;

    padding:
        11px
        18px;

    border: 0;
    border-radius: 7px;

    background: #000000;
    color: #ffffff;

    font-family:
        "Inter",
        sans-serif;

    font-size: 14px;
    font-weight: 650;

    cursor: pointer;

    transition:
        background-color 180ms ease,
        color 180ms ease;
}

.newsletter-popup__submit:hover {
    background: #f9a825;
    color: #111111;
}

.newsletter-popup__submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

/*
|--------------------------------------------------------------------------
| Form result message
|--------------------------------------------------------------------------
*/

.newsletter-popup__message,
.newsletter-footer__message {
    min-height: 17px;

    margin:
        10px
        0
        0;

    font-family:
        "Inter",
        sans-serif;

    font-size: 11px;
    line-height: 1.4;
}

.newsletter-popup__message.is-success,
.newsletter-footer__message.is-success {
    color: #2b7a38;
}

.newsletter-popup__message.is-error,
.newsletter-footer__message.is-error {
    color: #b33232;
}

/*
|--------------------------------------------------------------------------
| Privacy note
|--------------------------------------------------------------------------
*/

.newsletter-popup__privacy {
    margin:
        6px
        0
        0;

    color: #888888;

    font-family:
        "Inter",
        sans-serif;

    font-size: 11px;
    line-height: 1.45;
}

/*
|--------------------------------------------------------------------------
| Visual panel
|--------------------------------------------------------------------------
*/

.newsletter-popup__visual {
    position: relative;

    min-width: 0;
    min-height: 430px;

    overflow: hidden;

    border-left:
        1px solid
        rgba(120, 120, 120, 0.12);

    background: #e8e8e8;
}

.newsletter-popup__image {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.newsletter-popup__image--dark {
    display: none;
}

/*
|--------------------------------------------------------------------------
| Close button
|--------------------------------------------------------------------------
*/

.newsletter-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 4;

    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        1px solid
        rgba(255, 255, 255, 0.78);

    border-radius: 50%;

    background:
        rgba(17, 17, 17, 0.18);

    color: #ffffff;

    font-size: 15px;

    cursor: pointer;

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    transition:
        background-color 180ms ease,
        border-color 180ms ease;
}

.newsletter-popup__close i {
    position: static;
    width: auto;
}

.newsletter-popup__close:hover {
    background:
        rgba(17, 17, 17, 0.46);
}

.newsletter-popup__close:focus-visible,
.newsletter-popup__submit:focus-visible {
    outline:
        3px solid
        rgba(249, 168, 37, 0.42);

    outline-offset: 3px;
}

/* Footer form support */
.newsletter-footer__field {
    position: relative;
}

.newsletter-footer__field input {
    padding-right: 30px;
}

/* Dark mode */
body.dark-mode .newsletter-popup__dialog,
body.dark-mode .newsletter-popup__content {
    background: #202020;
    color: #f7f7f7;
}

body.dark-mode .newsletter-popup__description,
body.dark-mode .newsletter-popup__privacy {
    color: #a7a7a7;
}

body.dark-mode .newsletter-popup__icon {
    color: #ffffff;
}

body.dark-mode .newsletter-popup__field {
    border-bottom-color: rgba(255, 255, 255, 0.72);
}

body.dark-mode .newsletter-popup__field:focus-within {
    border-bottom-color: #f9a825;
}

body.dark-mode .newsletter-popup__field input::placeholder {
    color: #898989;
}

body.dark-mode .newsletter-popup__submit {
    background: #ffffff;
    color: #111111;
}

body.dark-mode .newsletter-popup__submit:hover {
    background: #f9a825;
}

body.dark-mode .newsletter-popup__image--light {
    display: none;
}

body.dark-mode .newsletter-popup__image--dark {
    display: block;
}

body.dark-mode .newsletter-popup__message.is-success,
body.dark-mode .newsletter-footer__message.is-success {
    color: #b8edc0;
}

body.dark-mode .newsletter-popup__message.is-error,
body.dark-mode .newsletter-footer__message.is-error {
    color: #ffb7b7;
}

/* Status page */
.newsletter-status-page {
    display: grid;
    min-height: 60vh;
    place-items: center;
    padding: 50px 20px;
}

.newsletter-status-card {
    width: min(560px, 100%);
    padding: 48px;
    border-radius: 20px;
    background: var(--card-bg, #f3f3f3);
    color: var(--text-color, #111111);
    text-align: center;
}

.newsletter-status-card__icon {
    display: inline-flex;
    width: 68px;
    height: 68px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--green-bg, #dffadf);
    color: #347444;
    font-size: 1.45rem;
}

.newsletter-status-card h1 {
    margin: 24px 0 12px;
    font-family: "PTSerifPro Demi", Georgia, serif;
}

.newsletter-status-card p {
    margin: 0 0 28px;
}

.newsletter-status-card__button {
    display: inline-flex;
    padding: 11px 19px;
    border-radius: 8px;
    background: #f9a825;
    color: #111111;
    font-weight: 700;
    text-decoration: none;
}

/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
|
| 761px to 1023px
|--------------------------------------------------------------------------
*/

@media (
    min-width: 761px
) and (
    max-width: 1023px
) {
    .newsletter-popup {
        padding: 16px;
    }

    .newsletter-popup__dialog {
        grid-template-columns:
            minmax(0, 1.28fr)
            minmax(210px, 0.72fr);

        width:
            min(
                680px,
                calc(100vw - 32px)
            );

        max-height:
            calc(100dvh - 32px);

        border-radius: 16px;
    }

    .newsletter-popup__content {
        padding:
            4rem
            5rem;
    }

    .newsletter-popup__visual {
        min-height: 390px;
    }

    .newsletter-popup__icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;

        margin-bottom: 17px;

        font-size: 17px;
    }

    .newsletter-popup__eyebrow {
        margin-bottom: 7px;

        font-size: 10px;
    }

    .newsletter-popup__title {
        font-size: 45px;
    }

    .newsletter-popup__description {
        margin:
            14px
            0
            18px;

        font-size: 13px;
        line-height: 1.52;
    }

    .newsletter-popup__field {
        margin-bottom: 18px;
    }

    .newsletter-popup__field input {
        padding-top: 9px;
        padding-bottom: 9px;

        font-size: 14px;
    }

    .newsletter-popup__submit {
        min-height: 42px;

        font-size: 13px;
    }

    .newsletter-popup__close {
        top: 13px;
        right: 13px;

        width: 34px;
        height: 34px;

        font-size: 14px;
    }
}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
|
| The popup uses real compact dimensions.
|
| The image is placed above the content and rotated 90 degrees
| so the original portrait image becomes a horizontal banner.
|
|--------------------------------------------------------------------------
*/

@media (max-width: 760px) {
    .newsletter-popup {
        padding: 10px;
    }

    .newsletter-popup__dialog {
        /*
         * This variable represents the popup's exact physical width.
         * The rotated image uses it as its pre-rotation height.
         */
        --newsletter-popup-mobile-width:
            min(
                390px,
                calc(100vw - 20px)
            );

        grid-template-columns: 1fr;

        width:
            var(
                --newsletter-popup-mobile-width
            );

        min-height: 0;

        max-height:
            calc(100dvh - 20px);

        overflow-x: hidden;
        overflow-y: auto;

        border-radius: 16px;
    }

    /*
    |--------------------------------------------------------------------------
    | Horizontal visual at the top
    |--------------------------------------------------------------------------
    */

    .newsletter-popup__visual {
        order: -1;

        width: 100%;
        height: 150px;
        min-height: 150px;

        border-left: 0;

        border-bottom:
            1px solid
            rgba(120, 120, 120, 0.12);
    }

    /*
     * Before rotation:
     *
     * width  = visible banner height
     * height = popup width
     *
     * After rotate(90deg), those dimensions exchange places,
     * producing a horizontal image that fills the top panel.
     */
    .newsletter-popup__image {
        inset: auto;

        top: 50%;
        left: 50%;

        width: 155px;

        height:
            var(
                --newsletter-popup-mobile-width
            );

        max-width: none;
        max-height: none;

        object-fit: cover;
        object-position: center;

        transform:
            translate(
                -50%,
                -50%
            )
            rotate(90deg);

        transform-origin: center;
    }

    /*
    |--------------------------------------------------------------------------
    | Compact mobile content
    |--------------------------------------------------------------------------
    */

    .newsletter-popup__content {
        overflow: visible;

        padding:
            4rem
            3rem;
    }

    .newsletter-popup__icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;

        margin-bottom: 14px;

        border-radius: 8px;

        font-size: 15px;
    }

    .newsletter-popup__eyebrow {
        margin-bottom: 6px;

        font-size: 11px;
        letter-spacing: 0.055em;
    }

    .newsletter-popup__title {
        font-size: 40px;
        letter-spacing: -0.03em;
        line-height: 1.03;
    }

    .newsletter-popup__description {
        margin:
            12px
            0
            16px;

        font-size: 13.5px;
        line-height: 1.5;
    }

    .newsletter-popup__field {
        margin-bottom: 17px;
    }

    .newsletter-popup__field input {
        padding:
            9px
            32px
            9px
            0;

        font-size: 15px;
    }

    .newsletter-popup__field-icon {
        font-size: 13px;
    }

    .newsletter-popup__submit {
        min-height: 40px;

        padding:
            9px
            14px;

        font-size: 13.5px;
    }

    .newsletter-popup__message {
        min-height: 15px;

        margin-top: 8px;

        font-size: 11.5px;
    }

    .newsletter-popup__privacy {
        margin-top: 5px;

        font-size: 11.5px;
    }

    .newsletter-popup__close {
        top: 9px;
        right: 9px;

        width: 31px;
        height: 31px;

        border-color:
            rgba(255, 255, 255, 0.7);

        background:
            rgba(17, 17, 17, 0.34);

        font-size: 13px;
    }

    .newsletter-status-card {
        padding:
            36px
            24px;
    }
}

/*
|--------------------------------------------------------------------------
| Very narrow mobile screens
|--------------------------------------------------------------------------
*/

@media (max-width: 380px) {
    .newsletter-popup__visual {
        height: 108px;
        min-height: 108px;
    }

    .newsletter-popup__image {
        width: 108px;
    }

    .newsletter-popup__content {
        padding:
            4rem
            2rem;
    }

    .newsletter-popup__title {
        font-size: 38.5px;
    }

    .newsletter-popup__description {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .newsletter-popup,
    .newsletter-popup__dialog {
        transition: none;
    }
}

.newsletter-status-card form {
    margin: 0;
}

.newsletter-status-card__button {
    border: 0;
    cursor: pointer;
}

.newsletter-status-card__secondary {
    display: inline-flex;
    margin-top: 16px;
    color: var(--text-color, #333333);
    font-size: 0.85rem;
    text-decoration: underline;
}

/*
|--------------------------------------------------------------------------
| Newsletter confirmation slide-down bar
|--------------------------------------------------------------------------
|
| Preview:
| /?preview_newsletter_confirmation=1
| /?preview_newsletter_confirmation=1&hold_newsletter_confirmation=1
|
*/

.newsletter-confirmation-bar,
.newsletter-confirmation-bar * {
    box-sizing: border-box;
}

.newsletter-confirmation-bar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    margin: 0 auto;
    z-index: 24000;

    width: 50%;

    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    transform: translateY(-105%);

    background: rgba(245, 248, 243, 0.68);
    color: #18331c;
    border-radius: 20px;

    border-bottom: 1px solid rgba(52, 116, 68, 0.14);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    transition:
        transform 340ms ease,
        opacity 340ms ease,
        visibility 340ms ease;
}

/* ===========Newsletter verification Test Preview================ */

/* .newsletter-confirmation-bar.is-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
} */

.newsletter-confirmation-bar.is-leaving {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-105%);
}

/*
|--------------------------------------------------------------------------
| Inner content
|--------------------------------------------------------------------------
*/

.newsletter-confirmation-bar__inner {
    display: flex;
    width: min(1080px, 100%);
    min-height: 60px;
    align-items: center;
    gap: 12px;

    margin-inline: auto;
    padding: 10px clamp(16px, 3vw, 32px);
}

/*
|--------------------------------------------------------------------------
| Newsletter confirmation PNG icon
|--------------------------------------------------------------------------
*/

.newsletter-confirmation-bar__icon {
    position: relative;

    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;

    overflow: visible;

    border: 0;
    border-radius: 0;

    background: transparent;
    color: inherit;
}

.newsletter-confirmation-bar__icon-image {
    grid-area: 1 / 1;

    display: block;
    width: 100%;
    height: 100%;

    max-width: none;

    object-fit: contain;
    object-position: center;
}

/*
|--------------------------------------------------------------------------
| Default light-mode icon
|--------------------------------------------------------------------------
*/

.newsletter-confirmation-bar__icon-image--light {
    display: block;
}

.newsletter-confirmation-bar__icon-image--dark {
    display: none;
}

/*
|--------------------------------------------------------------------------
| Dark-mode icon
|--------------------------------------------------------------------------
*/

body.dark-mode
.newsletter-confirmation-bar__icon-image--light {
    display: none;
}

body.dark-mode
.newsletter-confirmation-bar__icon-image--dark {
    display: block;
}

.newsletter-confirmation-bar__content {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
}

.newsletter-confirmation-bar__title {
    color: inherit;

    font-family: "PT Serif", Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.newsletter-confirmation-bar__message {
    color: #506453;

    font-family: "Inter", sans-serif;
    font-size: 1rem;
    line-height: 1.35;
}

/*
|--------------------------------------------------------------------------
| Dark mode
|--------------------------------------------------------------------------
*/

body.dark-mode .newsletter-confirmation-bar {
    background: rgba(22, 29, 23, 0.72);
    color: #eef6ee;

    border-bottom-color: rgba(155, 209, 143, 0.12);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.34);
}

body.dark-mode
.newsletter-confirmation-bar__icon {
    background: transparent;
    color: inherit;
}

body.dark-mode .newsletter-confirmation-bar__message {
    color: #c8d7c8;
}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {
    .newsletter-confirmation-bar__inner {
        min-height: 54px;
        gap: 10px;
        padding: 9px 14px;
    }

    .newsletter-confirmation-bar__icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
}

    .newsletter-confirmation-bar__content {
        display: block;
    }

    .newsletter-confirmation-bar__title,
    .newsletter-confirmation-bar__message {
        display: block;
    }

    .newsletter-confirmation-bar__title {
        font-size: 0.93rem;
    }

    .newsletter-confirmation-bar__message {
        margin-top: 2px;
        font-size: 0.74rem;
        line-height: 1.3;
    }

    .newsletter-confirmation-bar {
        width: 75%;
    }

    .newsletter-confirmation-bar__title {
    font-size: 1rem;
}

.newsletter-confirmation-bar__message {
    font-size: 0.8rem;
}
}

@media (prefers-reduced-motion: reduce) {
    .newsletter-confirmation-bar {
        transition: none;
    }
}

@media (max-width: 1024px) {
.newsletter-confirmation-bar {
        width: 75%;
    }
}