.oe-paywall {
    box-sizing: border-box;
    width: 100%;
    margin: 3.75rem auto 3.5rem;
    padding: 0;
    background: transparent !important;
    color: inherit;
    border-top: 1px solid rgba(0, 0, 128, 0.22);
    border-bottom: 1px solid rgba(0, 0, 128, 0.22);
}

.oe-paywall *,
.oe-paywall *::before,
.oe-paywall *::after {
    box-sizing: border-box;
}

.oe-paywall__inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 2.55rem;
    text-align: left;
}

.oe-paywall__eyebrow {
    margin: 0 0 0.75rem;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #000080;
}

.oe-paywall__title {
    max-width: 19ch;
    margin: 0 0 1.25rem;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(1.65rem, 2.8vw, 2rem) !important;
    font-weight: 600;
    line-height: 1.14 !important;
    letter-spacing: -0.015em;
    color: inherit;
}

.oe-paywall__body,
.oe-paywall__secondary,
.oe-paywall__value {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
}

.oe-paywall__body {
    max-width: 58ch;
    margin: 0 0 1.85rem;
}

.oe-paywall__actions {
    margin: 0 0 1.25rem;
}

.oe-paywall__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.82rem 1.65rem;
    border: 1px solid #000080;
    border-radius: 0;
    background: #000080 !important;
    color: #fff !important;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background-color 160ms ease, color 160ms ease;
}

.oe-paywall__button:hover,
.oe-paywall__button:focus-visible {
    background: transparent !important;
    color: #000080 !important;
    text-decoration: none !important;
}

.oe-paywall__button:focus-visible,
.oe-paywall a:focus-visible {
    outline: 2px solid #000080;
    outline-offset: 3px;
}

.oe-paywall__secondary {
    margin: 0.45rem 0;
}

.oe-paywall__secondary a {
    color: #000080;
    font-weight: 600;
    text-underline-offset: 0.16em;
}

.oe-paywall__value {
    margin: 1.65rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(0, 0, 128, 0.14);
    font-style: italic;
}

.oe-paywall__notice {
    max-width: 720px;
    margin: 1rem auto;
    padding: 0.8rem 1rem;
    border-left: 4px solid #d63638;
    background: #fff;
    color: #1d2327;
}

/* Remove MemberPress/theme unauthorised-content presentation when it contains
   the OE paywall. Safari 15.4+ and current browsers support :has(). */
.mepr-unauthorized-message:has(.oe-paywall),
.mepr-unauthorized-excerpt:has(.oe-paywall),
.mepr_error:has(.oe-paywall),
.mp_wrapper:has(> .oe-paywall),
.entry-content > div:has(> .oe-paywall),
.entry-content > section:has(> .oe-paywall) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
}

@media (max-width: 600px) {
    .oe-paywall {
        margin: 3rem auto 2.5rem;
    }

    .oe-paywall__inner {
        padding: 2.1rem 1.1rem 2.2rem;
    }

    body .oe-paywall .oe-paywall__title {
        max-width: 16ch;
        font-size: 1.55rem !important;
        line-height: 1.13 !important;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .oe-paywall__body {
        margin-bottom: 1.65rem;
    }

    body .oe-paywall .oe-paywall__button,
    body .oe-paywall a.oe-paywall__button {
        display: flex !important;
        width: 100% !important;
        background-color: #000080 !important;
        color: #ffffff !important;
        border-color: #000080 !important;
    }

    .oe-paywall__value {
        margin-top: 1.45rem;
    }
}
