/* EpicShreds newsletter integration */

.es-newsletter-form-area {
    min-width: 0;
    width: 100%;
    align-self: center;
}

.es-newsletter .es-newsletter-form-area .es-newsletter-signup {
    width: 100%;
    max-width: none;
    margin: 0;
}

.es-newsletter .es-newsletter-trap {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip-path: inset(50%);
}

.es-newsletter .es-newsletter-consent {
    font-size: 11px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
    color: #141414 !important;
    text-align: left;
    margin: 12px 0 0;
    padding: 0;
}

.es-newsletter .es-newsletter-consent a {
    color: #141414 !important;
    font-weight: 700;
    text-decoration: underline !important;
}

.es-newsletter .es-newsletter-feedback {
    background: transparent;
    color: #141414;
    border: 0;
    border-left: 3px solid #8009A6;
    padding: 4px 0 4px 12px;
    margin: 14px 0 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
}

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

.es-newsletter .es-newsletter-feedback.is-error {
    border-left-color: #a00000;
    color: #800000;
}

.es-newsletter-button {
    white-space: nowrap;
    box-sizing: border-box;
}

.es-newsletter-button:disabled {
    opacity: .75;
    cursor: wait;
}

@media (max-width: 1100px) {
    .es-newsletter-form-area {
        grid-column: 1 / -1;
        max-width: 650px;
        justify-self: center;
    }
}

@media (max-width: 600px) {
    .es-newsletter-form-area {
        max-width: 100%;
    }

    .es-newsletter .es-newsletter-consent {
        font-size: 11px;
    }

    .es-newsletter .es-newsletter-feedback {
        font-size: 12px;
    }
}

/* Reserve feedback space to prevent layout shifts */

.es-newsletter .es-newsletter-feedback {
    box-sizing: border-box;
    min-height: 48px;
    margin: 10px 0 0;
}

.es-newsletter .es-newsletter-feedback[hidden] {
    display: block !important;
    visibility: hidden;
}

@media (max-width: 600px) {
    .es-newsletter .es-newsletter-feedback {
        min-height: 80px;
    }
}

/* Newsletter button cursor */
.es-newsletter .es-newsletter-button:not(:disabled):hover {
    cursor: pointer;
}

/* Newsletter embedded within information pages */

.es-information .es-info-content .es-newsletter {
    margin: 25px 0 30px;
    padding: 0;
}

.es-information .es-newsletter .es-newsletter-inner {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 10px 35px;
    padding: 30px 40px;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
}

.es-information .es-newsletter-inner::before,
.es-information .es-newsletter-inner::after {
    display: none !important;
    content: none !important;
}

.es-information .es-newsletter-heading {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}

.es-information .es-newsletter-heading h2 {
    margin: 0 !important;
    padding: 0 !important;
}

.es-information .es-newsletter-heading img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
}

.es-information .es-newsletter-tagline {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    text-align: center;
}

.es-information .es-newsletter-tagline::before,
.es-information .es-newsletter-tagline::after {
    display: none !important;
    content: none !important;
}

.es-information .es-newsletter-tagline p {
    color: #141414 !important;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 900;
    font-style: italic;
    margin: 0 !important;
}

.es-information .es-newsletter-form-area {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 100%;
    max-width: none;
    min-width: 0;
    align-self: center;
}

.es-information .es-newsletter .es-newsletter-signup {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
}

.es-information .es-newsletter .es-newsletter-input {
    width: 100%;
    max-width: none;
    min-width: 0;
    flex: none;
    box-sizing: border-box;
}

.es-information .es-newsletter-input input {
    width: 100%;
    min-width: 0;
}

.es-information .es-newsletter .es-newsletter-button {
    width: 100%;
    max-width: none;
    flex: none;
    justify-content: center;
}

.es-information .es-newsletter .es-newsletter-consent {
    margin: 14px 0 0 !important;
    font-size: 11px;
    line-height: 1.6;
}

.es-information .es-newsletter .es-newsletter-feedback {
    margin: 10px 0 0 !important;
    min-height: 48px;
}

@media (max-width: 1100px) {

    .es-information .es-newsletter .es-newsletter-inner {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        gap: 18px;
        padding: 30px 25px;
    }

    .es-information .es-newsletter-heading {
        grid-column: 1;
        grid-row: 1;
    }

    .es-information .es-newsletter-tagline {
        grid-column: 1;
        grid-row: 2;
    }

    .es-information .es-newsletter-form-area {
        grid-column: 1;
        grid-row: 3;
        max-width: 500px;
        justify-self: center;
    }
}

@media (max-width: 600px) {

    .es-information .es-newsletter .es-newsletter-inner {
        padding: 25px 18px;
    }

    .es-information .es-newsletter-heading img {
        max-width: 240px;
    }

    .es-information .es-newsletter-tagline p {
        font-size: 14px;
    }

    .es-information .es-newsletter .es-newsletter-feedback {
        min-height: 80px;
    }
}

