/* =========================================================
   TCG — NEWSLETTER
   Styles for includes/newsletter.php: the popup of a first
   visit, and the answer the form in the site closing gives.
   Everything of the popup sits under #tcg-news so the theme's
   own button and input rules stay out.
========================================================= */

#tcg-news {
    --tcg-ink: #111111;
    --tcg-paper: #f6f4ef;
    --tcg-cream: #f1eee8;
    --tcg-line: rgba(17, 17, 17, .16);
    --tcg-muted: #6f6d66;

    position: fixed;
    inset: 0;
    z-index: 100010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--tcg-ink);
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

#tcg-news[hidden] {
    display: none;
}

#tcg-news *,
#tcg-news *::before,
#tcg-news *::after {
    box-sizing: border-box;
}

#tcg-news .tcg-news__veil {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, .58);
    opacity: 0;
    transition: opacity .36s ease;
}

#tcg-news .tcg-news__box {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    width: min(860px, 100%);
    max-height: 100%;
    background: var(--tcg-paper);
    outline: 0;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .36s ease, transform .5s cubic-bezier(.16, .8, .24, 1);
}

#tcg-news.is-open .tcg-news__veil {
    opacity: 1;
}

#tcg-news.is-open .tcg-news__box {
    opacity: 1;
    transform: none;
}


/* -----------------------------------------------------
   BLACK SIDE: WHAT YOU GET
----------------------------------------------------- */

#tcg-news .tcg-news__side {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 470px;
    padding: 40px 36px 34px;
    background: var(--tcg-ink);
    color: var(--tcg-cream);
}

#tcg-news .tcg-news__amount {
    display: block;
    font-family: "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif;
    font-size: 168px;
    font-weight: 700;
    line-height: .8;
    letter-spacing: -.07em;
}

#tcg-news .tcg-news__amount i {
    margin-left: .04em;
    font-size: .46em;
    font-style: normal;
    letter-spacing: 0;
    vertical-align: .82em;
}

#tcg-news .tcg-news__amount-label {
    display: block;
    margin-top: 22px;
    font-size: 10.5px;
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: .17em;
    text-transform: uppercase;
}

#tcg-news .tcg-news__mark {
    display: block;
    width: 62px;
    height: auto;
    margin-top: auto;
}

#tcg-news .tcg-news__amount-label + .tcg-news__mark {
    margin-top: auto;
}


/* -----------------------------------------------------
   PAPER SIDE: THE FORM AND ITS ANSWERS
----------------------------------------------------- */

#tcg-news .tcg-news__main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 56px 46px 40px;
    overflow-y: auto;
}

#tcg-news .tcg-news__step[hidden] {
    display: none;
}

#tcg-news .tcg-news__eyebrow {
    margin: 0 0 18px;
    padding: 0;
    color: var(--tcg-ink);
    font-size: 10px;
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: .17em;
    text-transform: uppercase;
}

#tcg-news .tcg-news__title {
    margin: 0 0 20px;
    padding: 0;
    color: var(--tcg-ink);
    font-family: "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif;
    font-size: 52px;
    font-weight: 700;
    line-height: .88;
    letter-spacing: -.05em;
    text-transform: uppercase;
}

#tcg-news .tcg-news__text {
    max-width: 36ch;
    margin: 0 0 28px;
    padding: 0;
    color: var(--tcg-ink);
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.55;
}

#tcg-news .tcg-news__text strong {
    font-weight: 700;
    word-break: break-word;
}

#tcg-news .tcg-news__form {
    display: block;
    margin: 0;
    padding: 0;
}

#tcg-news .tcg-news__label,
#tcg-news .tcg-news__trap {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

#tcg-news .tcg-news__input {
    display: block;
    width: 100%;
    height: 50px;
    margin: 0 0 12px;
    padding: 0 2px;
    border: 0;
    border-bottom: 1px solid var(--tcg-ink);
    border-radius: 0;
    background: transparent;
    color: var(--tcg-ink);
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    box-shadow: none;
    outline: 0;
    -webkit-appearance: none;
    appearance: none;
}

#tcg-news .tcg-news__input::placeholder {
    color: var(--tcg-muted);
    opacity: 1;
}

#tcg-news .tcg-news__input:focus {
    border-bottom-width: 2px;
}

#tcg-news .tcg-news__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 0 24px;
    border: 1px solid var(--tcg-ink);
    border-radius: 0;
    background: var(--tcg-ink);
    color: var(--tcg-paper);
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .17em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

#tcg-news .tcg-news__button:hover,
#tcg-news .tcg-news__button:focus-visible {
    background: transparent;
    color: var(--tcg-ink);
}

#tcg-news .tcg-news__button[disabled] {
    opacity: .55;
    cursor: default;
}

#tcg-news .tcg-news__error {
    margin: 12px 0 0;
    padding: 0;
    color: #a1160f;
    font-size: 13px;
    line-height: 1.4;
}

#tcg-news .tcg-news__error[hidden] {
    display: none;
}

#tcg-news .tcg-news__legal {
    max-width: 44ch;
    margin: 18px 0 0;
    padding: 0;
    color: var(--tcg-muted);
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.5;
}

#tcg-news .tcg-news__legal a {
    color: var(--tcg-muted);
    text-decoration: underline;
}

#tcg-news .tcg-news__skip {
    display: inline-block;
    width: auto;
    min-height: 0;
    margin: 22px 0 0;
    padding: 0 0 2px;
    border: 0;
    border-bottom: 1px solid var(--tcg-ink);
    border-radius: 0;
    background: transparent;
    color: var(--tcg-ink);
    font-family: inherit;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: .15em;
    text-transform: uppercase;
    box-shadow: none;
    cursor: pointer;
}

#tcg-news .tcg-news__close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--tcg-ink);
    font-family: inherit;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    box-shadow: none;
    cursor: pointer;
}

/* page behind the open popup does not scroll */
html.tcg-news-lock,
html.tcg-news-lock body {
    overflow: hidden !important;
}


/* -----------------------------------------------------
   PHONES: A SHEET FROM THE BOTTOM
----------------------------------------------------- */

@media (max-width: 720px) {

    #tcg-news {
        align-items: flex-end;
        padding: 0;
    }

    #tcg-news .tcg-news__box {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        max-height: 92%;
        overflow-y: auto;
        transform: translateY(100%);
    }

    #tcg-news .tcg-news__side {
        flex-direction: row;
        align-items: flex-end;
        justify-content: flex-start;
        gap: 14px;
        min-height: 0;
        padding: 22px 60px 20px 20px;
    }

    #tcg-news .tcg-news__amount {
        font-size: 76px;
    }

    #tcg-news .tcg-news__amount-label {
        max-width: 9em;
        margin: 0 0 4px;
    }

    #tcg-news .tcg-news__mark {
        display: none;
    }

    #tcg-news .tcg-news__main {
        padding: 30px 20px calc(26px + env(safe-area-inset-bottom, 0px));
        overflow: visible;
    }

    #tcg-news .tcg-news__title {
        font-size: 42px;
    }

    #tcg-news .tcg-news__text {
        margin-bottom: 20px;
    }

    #tcg-news .tcg-news__close {
        color: var(--tcg-cream);
    }
}

@media (prefers-reduced-motion: reduce) {

    #tcg-news .tcg-news__veil,
    #tcg-news .tcg-news__box {
        transition: none;
    }
}


/* -----------------------------------------------------
   THE FORM IN THE SITE CLOSING, ONCE SENT
----------------------------------------------------- */

.tcg-closing-form.is-busy {
    opacity: .55;
    pointer-events: none;
}

.tcg-closing-note {
    margin: 14px 0 0 !important;
    color: #f1eee8;
    font-family: "Lato", Arial, sans-serif;
    font-size: 12px !important;
    line-height: 1.5;
    letter-spacing: .02em;
}

.tcg-closing-note.is-error {
    color: #ff8a7a;
}
