/* ============================================================
   Universal Amber-400 Shimmer Sponsored Chip & E-E-A-T Disclosure
   Vibrant Amber-400 (#fbbf24) with crisp dark typography (#121212)
   ============================================================ */
        /* Universal Screen-Reader Utility (Safe Fallback across all templates & standalone players) */
.bfwt-sr-only,
.tw-sr-only,
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.bfwt-sponsored-chip {
    --bf-amber: #fbbf24;
    --bf-amber-border: rgba(245, 158, 11, 0.45);
    --bf-text: #121212;
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    gap: 0.35rem;
    border-radius: 9999px;
    overflow: visible;
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    user-select: none;
    z-index: 10;
    background: color-mix(in srgb, #f59e0b 14%, rgb(var(--color-paper, 255 255 255)));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(217, 119, 6, 0.34);
    color: #92400e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-color-mode='light']) .bfwt-sponsored-chip {
        background: color-mix(in srgb, #fbbf24 22%, rgb(var(--color-paper, 26 27 30)));
        border-color: rgba(251, 191, 36, 0.42);
        color: #fde68a;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
    }
}
:root[data-color-mode='dark'] .bfwt-sponsored-chip,
.dark .bfwt-sponsored-chip {
    background: color-mix(in srgb, #fbbf24 22%, rgb(var(--color-paper, 26 27 30)));
    border-color: rgba(251, 191, 36, 0.42);
    color: #fde68a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}
.bfwt-sponsored-chip:hover {
    border-color: rgba(245, 158, 11, 0.65);
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.20);
}
/* Signature 1px bottom amber shimmer rail */
.bfwt-sponsored-chip::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.65), transparent);
    pointer-events: none;
    border-radius: 9999px;
}
.bfwt-sponsored-chip__shimmer {
    display: none;
}
/* Sizes */
.bfwt-sponsored-chip--compact {
    padding: 2px 7px 2px 6px;
    font-size: 9.5px;
    gap: 3.5px;
}
.bfwt-sponsored-chip--compact .bfwt-sponsored-chip__icon {
    font-size: 11px;
}
.bfwt-sponsored-chip--default {
    padding: 3.5px 10px 3.5px 8.5px;
    font-size: 11px;
    gap: 4px;
}
.bfwt-sponsored-chip--default .bfwt-sponsored-chip__icon {
    font-size: 13px;
}
.bfwt-sponsored-chip--hero {
    padding: 5px 14px 5px 11px;
    font-size: 12px;
    gap: 5px;
}
.bfwt-sponsored-chip--hero .bfwt-sponsored-chip__icon {
    font-size: 15px;
}
.bfwt-sponsored-chip__icon {
    line-height: 1;
    color: currentColor !important;
    flex-shrink: 0;
}
.bfwt-sponsored-chip__label {
    line-height: 1;
    font-weight: 700;
    color: currentColor !important;
}
/* Interactive Info Trigger */
.bfwt-sponsored-tooltip-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 1px;
    cursor: pointer;
    outline: none;
    pointer-events: auto !important;
}
.bfwt-sponsored-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: color-mix(in srgb, currentColor 14%, transparent);
    color: currentColor;
    transition: all 0.15s ease;
}
.bfwt-sponsored-tooltip-trigger:hover .bfwt-sponsored-info-icon,
.bfwt-sponsored-tooltip-trigger:focus-visible .bfwt-sponsored-info-icon,
.bfwt-sponsored-tooltip-trigger.is-active .bfwt-sponsored-info-icon {
    background: #121212;
    color: #fbbf24;
    transform: scale(1.12);
}

/* Standalone Info Trigger (used in top announcement bar, headers, etc.) */
.bfwt-sponsored-tooltip-trigger--standalone {
    vertical-align: middle;
    font-size: inherit;
    line-height: inherit;
    cursor: pointer;
    gap: 0.35rem;
    margin-left: 0;
}
.bfwt-sponsored-tooltip-trigger--standalone .bfwt-sponsored-info-icon {
    width: 14px;
    height: 14px;
    background: rgb(var(--color-ink) / 0.09);
    color: rgb(var(--color-ink));
    border: 1px solid rgb(var(--color-borderline));
}
:root[data-color-mode='dark'] .bfwt-sponsored-tooltip-trigger--standalone .bfwt-sponsored-info-icon,
.dark .bfwt-sponsored-tooltip-trigger--standalone .bfwt-sponsored-info-icon {
    background: rgb(var(--color-ink) / 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}
.bfwt-sponsored-tooltip-trigger--standalone:hover .bfwt-sponsored-info-icon,
.bfwt-sponsored-tooltip-trigger--standalone:focus-visible .bfwt-sponsored-info-icon,
.bfwt-sponsored-tooltip-trigger--standalone.is-active .bfwt-sponsored-info-icon {
    background: #fbbf24;
    color: #121212;
    border-color: #d97706;
    transform: scale(1.15);
}

/* Card & Grid Item Stacking Context Elevators */
.bfwt-card:has(.bfwt-sponsored-tooltip-trigger:hover),
.bfwt-card.has-active-tooltip {
    z-index: 40 !important;
}
.bfwt-grid-item:has(.bfwt-sponsored-tooltip-trigger:hover),
.bfwt-grid-item.has-active-tooltip {
    z-index: 40 !important;
    position: relative;
}

/* ============================================================
   Universal Body-Level Floating Tooltip Portal
   Renders on document.body outside all cards / overflow clipping
   Backdrop-filtered frosted glass synced with theme CSS variables
   ============================================================ */
.bfwt-universal-tooltip {
    --tip-bg: rgba(24, 24, 27, 0.96);
    --tip-border: rgba(245, 158, 11, 0.35);
    --tip-text: #f3f4f6;
    --tip-subtext: #d1d5db;
    position: fixed !important;
    top: 0;
    left: 0;
    z-index: 100000 !important;
    width: 310px;
    max-width: calc(100vw - 28px);
    padding: 11px 14px;
    border-radius: 10px;
    background-color: var(--tip-bg);
    background-color: rgb(var(--color-paper, 24 24 27) / 0.96);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgb(var(--color-borderline));
    color: rgb(var(--color-ink));
    box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.28), 0 4px 12px rgba(0, 0, 0, 0.12);
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-style: normal;
    text-align: left;
    white-space: normal;
    text-transform: none;
    letter-spacing: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s;
    transform: translateY(4px);
    user-select: text;
}
:root[data-color-mode='dark'] .bfwt-universal-tooltip,
.dark .bfwt-universal-tooltip {
    background-color: rgb(var(--color-paper) / 0.96);
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 14px 36px -4px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(245, 158, 11, 0.2);
}
.bfwt-universal-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.bfwt-universal-tooltip.is-measuring {
    display: block !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: none !important;
}
.bfwt-universal-tooltip__header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b45309;
    margin-bottom: 6px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgb(var(--color-borderline));
    line-height: 1.2;
}
:root[data-color-mode='dark'] .bfwt-universal-tooltip__header,
.dark .bfwt-universal-tooltip__header {
    color: #fbbf24;
    border-bottom-color: rgba(245, 158, 11, 0.25);
}
.bfwt-universal-tooltip__header-icon {
    width: 12px;
    height: 12px;
    color: #f59e0b;
    flex-shrink: 0;
}
.bfwt-universal-tooltip__body {
    display: block;
    font-size: 11.5px;
    line-height: 1.5;
    font-weight: 400;
    color: rgb(var(--color-ink));
}
/* Dynamic Tooltip Arrow */
.bfwt-universal-tooltip__arrow {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: rgb(var(--color-paper));
    border-left: 1px solid rgb(var(--color-borderline));
    border-top: 1px solid rgb(var(--color-borderline));
    transform: translateX(-50%) rotate(45deg);
    top: -6px;
    pointer-events: none;
}
:root[data-color-mode='dark'] .bfwt-universal-tooltip__arrow,
.dark .bfwt-universal-tooltip__arrow {
    border-color: rgba(245, 158, 11, 0.35);
}
.bfwt-universal-tooltip.is-above .bfwt-universal-tooltip__arrow {
    top: auto;
    bottom: -6px;
    border-left: none;
    border-top: none;
    border-right: 1px solid rgb(var(--color-borderline));
    border-bottom: 1px solid rgb(var(--color-borderline));
}
:root[data-color-mode='dark'] .bfwt-universal-tooltip.is-above .bfwt-universal-tooltip__arrow,
.dark .bfwt-universal-tooltip.is-above .bfwt-universal-tooltip__arrow {
    border-color: rgba(245, 158, 11, 0.35);
}
