:root {
    --tbnb-red: #b61f24;
    --tbnb-ink: #1f2937;
    --tbnb-red-soft: #fbf2f2;
    --tbnb-red-soft-2: #fff7f7;
}

.tbnb-banner {
    padding: 1.25rem;
    margin: 1.5rem auto;
    border-radius: 0;
    color: var(--tbnb-ink);
    background: #ffffff;
    border: 2px solid var(--tbnb-red);
    width: min(100%, 72rem);
    display: grid;
    gap: 1rem;
}

.tbnb-banner--bordered {
    border-color: var(--tbnb-red);
}

.tbnb-banner__brand {
    margin-bottom: 0.55rem;
}

.tbnb-banner__logo {
    display: block;
    max-height: 24px;
    width: auto;
}

.tbnb-banner__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.tbnb-banner__description {
    margin-bottom: 0.75rem;
}

.tbnb-banner__description p {
    margin: 0.4rem 0;
}

.tbnb-banner__form {
    width: 100%;
}

/* Newsletter Plugin forms: make full-width banners look balanced */
.tbnb-banner__form .tnp-subscription,
.tbnb-banner__form .tnp,
.tbnb-banner__form form {
    max-width: 34rem;
    width: 100%;
}

.tbnb-banner__form input[type='email'],
.tbnb-banner__form input[type='text'],
.tbnb-banner__form input[type='search'],
.tbnb-banner__form input[type='url'] {
    width: 100%;
    max-width: 100%;
}

@media (min-width: 980px) {
    .tbnb-banner {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        column-gap: 2rem;
        align-items: start;
    }

    .tbnb-banner__title,
    .tbnb-banner__description,
    .tbnb-banner__brand {
        grid-column: 1;
    }

    .tbnb-banner__form {
        grid-column: 2;
        align-self: center;
    }
}

.tbnb-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.tbnb-modal.is-open {
    display: block;
}

.tbnb-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.tbnb-modal__dialog {
    position: relative;
    margin: 5vh auto 0;
    max-width: 620px;
    background: #ffffff;
    border-radius: 0;
    padding: 1.25rem;
    z-index: 1;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
    border: 2px solid var(--tbnb-red);
}

.tbnb-banner--classic {
    background: #ffffff;
    border-radius: 0;
}

.tbnb-banner--classic .tbnb-banner__title {
    color: #121826;
}

.tbnb-banner--modern {
    background: var(--tbnb-red-soft-2);
    border-radius: 0;
    padding: 1.4rem;
}

.tbnb-banner--breaking {
    background: var(--tbnb-red-soft);
    border-width: 3px;
}

.tbnb-banner--breaking .tbnb-banner__title {
    color: var(--tbnb-red);
}

.tbnb-modal--classic .tbnb-modal__dialog {
    background: #ffffff;
}

.tbnb-modal--modern .tbnb-modal__dialog {
    background: var(--tbnb-red-soft-2);
    border-radius: 0;
}

.tbnb-modal--breaking .tbnb-modal__dialog {
    background: var(--tbnb-red-soft);
    border-width: 3px;
}

.tbnb-modal--breaking .tbnb-modal__title {
    color: var(--tbnb-red);
}

.tbnb-modal__close {
    position: absolute;
    top: 0.4rem;
    right: 0.5rem;
    border: 0;
    background: transparent;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.tbnb-modal__title {
    margin: 0 0 0.5rem;
}

.tbnb-modal__text {
    margin-bottom: 0.75rem;
}

.tbnb-no-scroll,
.tbnb-no-scroll body {
    overflow: hidden;
}

@media (max-width: 680px) {
    .tbnb-modal__dialog {
        margin: 8vh 0.8rem 0;
    }
}
