/* TF3 Top Banner */
.tf3-top-banner-spacer {
    padding-top: 74px;
}

.tf3-top-banner-wrap {
    position: fixed;
    top: calc(var(--header-height, 112px) + 18px);
    left: 24px;
    right: 24px;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

/* Fade up and out once the homepage hero carousel is active */
body.hero-carousel-active .tf3-top-banner-wrap {
    opacity: 0;
    transform: translateY(-28px);
    pointer-events: none;
}

body.hero-carousel-active .tf3-top-banner-wrap .tf3-top-banner,
body.hero-carousel-active .tf3-top-banner-wrap .tf3-top-banner__close {
    pointer-events: none;
}

@media (width < 768px) {
    .tf3-top-banner-wrap {
        z-index: 3;
    }
}

.tf3-top-banner-stack {
    position: relative;
    display: inline-flex;
    pointer-events: auto;
}

.tf3-top-banner {
    position: relative;
    width: auto;
    max-width: 100%;
    border: 1px solid rgba(235, 235, 238, 0.15);
    border-radius: 16px;
    background: rgba(11, 10, 21, 0.68);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0px 10px 32px rgba(11, 10, 21, 0.32);
    pointer-events: auto;
}

.tf3-top-banner__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 12px 24px 12px 18px;
    color: #ebebee;
    text-decoration: none;
}

.tf3-top-banner__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.tf3-top-banner__icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.tf3-top-banner__copy {
    gap: 8px;
    min-width: 0;
    display: block;
    white-space: normal;
    overflow: visible;
}

.tf3-top-banner__subtitle,
.tf3-top-banner__title,
.tf3-top-banner__cta {
    letter-spacing: 0.1px;
}

.tf3-top-banner__subtitle {
    color: #9f9cb0;
    font-family: 'Inter Tight', 'Inter_Tight:Regular', sans-serif;
    font-size: 14px;
    line-height: 20px;
    flex-shrink: 0;
}

.tf3-top-banner__title {
    color: #ebebee;
    font-family: 'Inter Tight', 'Inter_Tight:Medium', sans-serif;
    font-size: 14px;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tf3-top-banner__cta {
    color: #cfc2ff;
    font-family: 'Inter Tight', 'Inter_Tight:Medium', sans-serif;
    font-size: 14px;
    line-height: 20px;
    flex-shrink: 0;
    display: inline-block;
    white-space: nowrap;
}

.tf3-top-banner__close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 28px;
    min-width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(235, 235, 238, 0.18);
    background: rgba(11, 10, 21, 0.42);
    color: #ebebee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tf3-top-banner__close:hover {
    background: rgba(11, 10, 21, 0.72);
    border-color: rgba(235, 235, 238, 0.28);
    transform: scale(1.05);
}

.tf3-top-banner__close:active {
    transform: scale(0.95);
}

.tf3-top-banner__close-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.tf3-top-banner__close-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

@media (max-width: 600px) {
    .tf3-top-banner-spacer {
        padding-top: 88px;
    }

    .tf3-top-banner-wrap {
        top: calc(var(--header-height, 105px) + 4px);
        left: 16px;
        right: 16px;
    }

    .tf3-top-banner__link {
        min-height: auto;
        justify-content: flex-start;
        padding: 12px 14px;
    }

    .tf3-top-banner__close {
        top: -10px;
        right: -10px;
    }

    .tf3-top-banner__subtitle,
    .tf3-top-banner__title,
    .tf3-top-banner__cta {
        display: inline;
    }
}

@media (max-width: 480px) {
    .tf3-top-banner-spacer {
        padding-top: 96px;
    }
}
