html.tnb-sales-popup-open {
    overflow: hidden;
}

.tnb-sales-popup {
    display: none;
    position: fixed;
    inset: 0;
    margin: auto;
    padding: 0;
    width: min(420px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
    height: fit-content;
    border: 1px solid #e4ded5;
    border-radius: 18px;
    background: #faf8f4;
    color: #242726;
    box-shadow: 0 24px 80px rgba(18, 19, 18, .38);
}

.tnb-sales-popup[open] {
    display: block;
}

.tnb-sales-popup::backdrop {
    background: rgba(18, 19, 18, .62);
    backdrop-filter: blur(3px);
}

.tnb-sales-popup--image {
    width: min(480px, calc(100vw - 32px));
    max-width: min(480px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: #242726;
}

.tnb-sales-popup__image-link {
    display: block;
    color: #fff;
    text-decoration: none;
}

.tnb-sales-popup__image {
    display: block;
    width: auto;
    height: auto;
    max-width: min(480px, calc(100vw - 32px));
    max-height: min(650px, calc(100vh - 96px));
    max-height: min(650px, calc(100dvh - 96px));
    margin-inline: auto;
    object-fit: contain;
}

.tnb-sales-popup__image-action {
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 12px 20px;
    background: #c51c23;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.tnb-sales-popup--image .tnb-sales-popup__image-action {
    min-height: 44px;
    padding: 10px 16px;
}

.tnb-sales-popup__image-action > span { font-size: 20px; line-height: 1; }
.tnb-sales-popup__image-link:hover .tnb-sales-popup__image-action { background: #a9161c; }

.tnb-sales-popup__close {
    box-sizing: border-box;
    position: absolute;
    z-index: 1;
    right: 8px;
    top: 8px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 12px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: transparent;
    cursor: pointer;
}
.tnb-sales-popup__close:hover { background: rgba(255, 255, 255, .12); }
.tnb-sales-popup--image .tnb-sales-popup__close {
    color: #242726;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .24);
}
.tnb-sales-popup--image .tnb-sales-popup__close:hover { background: #efeae2; }
.tnb-sales-popup svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tnb-sales-popup__hero {
    padding: 29px 24px 24px;
    background: radial-gradient(ellipse at 100% 100%, #4c4941, transparent 65%), #242726;
    color: #fff;
}
.tnb-sales-popup__eyebrow { display: flex; align-items: center; gap: 7px; padding-right: 25px; font-size: 9px; line-height: 1.7; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #e8dfd1; }
.tnb-sales-popup__eyebrow > span { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: #ed2027; }
.tnb-sales-popup__hero h2 { margin: 17px 0 10px; color: #fff; font-size: 30px; line-height: 1.15; font-weight: 500; letter-spacing: -.04em; }
.tnb-sales-popup__hero p { margin: 0; font-size: 12px; line-height: 1.6; color: #ddd8cf; }
.tnb-sales-popup__body { padding: 20px 22px; }
.tnb-sales-popup__label { font-size: 9px; line-height: 1.5; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #797267; }
.tnb-sales-popup__offers { list-style: none; padding: 0; margin: 7px 0 17px; }
.tnb-sales-popup__offers li { margin: 0; padding: 0; border-bottom: 1px solid #e5dfd5; }
.tnb-sales-popup__offer { display: flex; align-items: center; gap: 13px; padding: 13px 0; color: #242726; text-decoration: none; }
.tnb-sales-popup__offer:hover { color: #c51c23; }
.tnb-sales-popup__discount { display: flex; flex: 0 0 61px; min-height: 57px; align-items: center; justify-content: center; flex-direction: column; border: 1px solid #edd5cf; border-radius: 9px; background: #fff0eb; color: #bf2228; }
.tnb-sales-popup__discount strong { font-size: 24px; line-height: 1.1; letter-spacing: -.04em; font-weight: 600; }
.tnb-sales-popup__discount small { font-size: 13px; }
.tnb-sales-popup__discount > span { font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.tnb-sales-popup__offer-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.tnb-sales-popup__offer-copy strong { font-size: 13px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.tnb-sales-popup__offer-copy > span { font-size: 10px; line-height: 1.5; color: #797267; }
.tnb-sales-popup__arrow { flex-shrink: 0; }
.tnb-sales-popup__cta { display: flex; align-items: center; justify-content: space-between; min-height: 45px; padding: 12px 16px; border-radius: 8px; background: #ed2027; color: #fff; text-decoration: none; font-size: 12px; font-weight: 600; }
.tnb-sales-popup__cta:hover { background: #c51c23; color: #fff; }
.tnb-sales-popup__cta > span { font-size: 20px; line-height: 1; }
.tnb-sales-popup__purchase { display: flex; align-items: center; gap: 11px; padding: 14px 22px; border-top: 1px solid #e5dfd5; background: #f0ede6; }
.tnb-sales-popup__check { display: grid; place-items: center; flex: 0 0 27px; height: 27px; border-radius: 50%; background: #e2e9df; color: #436442; font-size: 13px; }
.tnb-sales-popup__purchase > div { min-width: 0; }
.tnb-sales-popup__purchase div > span { display: block; margin-bottom: 3px; font-size: 9px; color: #777167; }
.tnb-sales-popup__purchase strong { display: block; font-size: 11px; line-height: 1.5; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tnb-sales-popup a:focus-visible, .tnb-sales-popup button:focus-visible { outline: 2px solid #ed2027; outline-offset: 3px; }
.tnb-sales-popup__image-link:focus-visible { outline-offset: -4px; }
.tnb-sales-popup__close:focus-visible { outline: 2px solid #c51c23; outline-offset: 2px; }
@media (max-width: 600px) {
    .tnb-sales-popup--image {
        max-width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: 10px;
    }
    .tnb-sales-popup--image .tnb-sales-popup__image {
        max-width: calc(100vw - 24px);
        max-height: calc(100dvh - 76px);
    }
    .tnb-sales-popup__hero { padding: 24px 20px 20px; }
    .tnb-sales-popup__hero h2 { font-size: 27px; }
    .tnb-sales-popup__body { padding: 17px 20px; }
}
@media (prefers-reduced-motion: no-preference) {
    .tnb-sales-popup[open] { animation: tnb-sales-enter .24s ease-out; }
    @keyframes tnb-sales-enter {
        from { opacity: 0; transform: translateY(8px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

.tnb-sales-popup__image-slide { display: block; color: #fff; text-decoration: none; }
.tnb-sales-popup__image-slide.is-hidden { display: none; }
.tnb-sales-popup__image {
    width: 100%;
    height: auto;
    max-width: none;
    max-height: calc(100vh - 250px);
    max-height: calc(100dvh - 250px);
    margin: 0;
    object-fit: contain;
    object-position: center top;
    background: #242726;
}
.tnb-sales-popup__dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    padding: 10px 0 2px;
    background: #242726;
}
.tnb-sales-popup__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .3);
    transition: background .2s;
}
.tnb-sales-popup__dot.is-active { background: #fff; }
.tnb-sales-popup__discount-up-to { display: block; font-size: 8px; font-weight: 700; letter-spacing: .08em; line-height: 1; }
.tnb-sales-popup__discount strong small { font-size: 14px; }
.tnb-sales-popup__discount:has(.tnb-sales-popup__discount-up-to) { min-height: 78px; gap: 3px; padding: 9px 4px; }
.tnb-sales-popup__discount:has(.tnb-sales-popup__discount-up-to) strong { font-size: 21px; line-height: 1; }
.tnb-sales-popup__discount:has(.tnb-sales-popup__discount-up-to) > span { letter-spacing: .12em; }

/* Dark popup: offer titles are always white, never inherit link red. */
.tnb-sales-popup__offer { color: #fff; }
.tnb-sales-popup__offer:hover { color: #fff; }
.tnb-sales-popup__offer-copy strong,
.tnb-sales-popup__offer-copy strong a { color: #fff; }
.tnb-sales-popup__offer:hover .tnb-sales-popup__offer-copy strong { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tnb-sales-popup__offer-copy > span { color: #a39c90; }

/* Keep the complete offer poster inside the mobile browser's visible viewport. */
@media (max-width: 767px) {
    .tnb-sales-popup--image {
        width: fit-content;
        max-width: calc(100vw - 24px);
        max-height: calc(100svh - 24px);
        max-height: calc(100dvh - 24px);
        margin: auto;
        overflow: hidden;
    }
    .tnb-sales-popup--image .tnb-sales-popup__image-link,
    .tnb-sales-popup--image .tnb-sales-popup__image-slide {
        width: fit-content;
        max-width: 100%;
        margin: auto;
    }
    .tnb-sales-popup--image .tnb-sales-popup__image {
        display: block;
        width: auto !important;
        height: auto !important;
        max-width: calc(100vw - 24px) !important;
        max-height: calc(100svh - 100px) !important;
        max-height: calc(100dvh - 100px) !important;
        object-fit: contain;
        margin: auto;
    }
    .tnb-sales-popup--image .tnb-sales-popup__body,
    .tnb-sales-popup--image .tnb-sales-popup__purchase { display: none; }
    .tnb-sales-popup--image .tnb-sales-popup__close {
        top: 8px;
        right: 8px;
        width: 44px;
        height: 44px;
        z-index: 5;
    }
    .tnb-sales-popup--image .tnb-sales-popup__dots { padding: 8px 0; }
}
