.gfb-runtime {
    --gfb-columns: 1;
    --gfb-max: 1040px;
    --gfb-gap: 8px;
    --gfb-radius: 14px;
    --gfb-desktop-height: 128px;
    --gfb-mobile-height: 92px;
    --gfb-primary: #6f9cff;
    --gfb-secondary: #232a35;
    --gfb-mobile-offset: 74px;
    font-family: Arial, "Helvetica Neue", sans-serif;
}

.gfb-floating {
    position: fixed;
    z-index: 2147482000;
    left: 50%;
    width: min(var(--gfb-max), calc(100vw - 36px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 16px);
    transition: opacity .28s ease, transform .28s ease, visibility .28s ease;
}

.gfb-floating.gfb-bottom { bottom: max(18px, env(safe-area-inset-bottom)); }
.gfb-floating.gfb-top { top: max(18px, env(safe-area-inset-top)); transform: translate(-50%, -16px); }
.gfb-floating.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }

.gfb-banner-grid {
    display: grid;
    grid-template-columns: repeat(var(--gfb-columns), minmax(0, 1fr));
    gap: var(--gfb-gap);
}

.gfb-banner-item {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(20, 31, 48, .1);
    border-radius: var(--gfb-radius);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 12px 35px rgba(21, 30, 44, .16);
}

.gfb-banner-visual,
.gfb-banner-item > img {
    display: block;
    overflow: hidden;
    line-height: 0;
}

.gfb-banner-item img {
    display: block;
    width: 100%;
    height: auto;
    max-height: var(--gfb-desktop-height);
    object-fit: contain;
    background: #fff;
}

.gfb-close-all {
    position: absolute;
    z-index: 5;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, .76);
    border-radius: 50%;
    color: #fff;
    background: rgba(27, 34, 45, .72);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
    font: 400 22px/28px Arial, sans-serif;
    text-align: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gfb-close-all:hover { color: #fff; background: rgba(20, 26, 36, .94); }

.gfb-conversion-bar {
    display: flex;
    min-height: 54px;
    align-items: center;
    gap: 16px;
    padding: 9px 12px 9px 16px;
    border-top: 1px solid rgba(20, 31, 48, .08);
    background: rgba(255, 255, 255, .97);
}

.gfb-conversion-copy { flex: 1; min-width: 0; }
.gfb-conversion-copy span { display: block; margin-bottom: 2px; color: #7b8798; font-size: 9px; font-weight: 800; line-height: 1.2; letter-spacing: .65px; text-transform: uppercase; }
.gfb-conversion-copy strong { display: block; overflow: hidden; color: #222831; font-size: 13px; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }

.gfb-conversion-cta {
    display: inline-flex !important;
    min-height: 38px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 16px !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #fff !important;
    background: var(--gfb-primary) !important;
    box-shadow: 0 7px 16px color-mix(in srgb, var(--gfb-primary) 28%, transparent);
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: transform .18s ease, filter .18s ease;
}

.gfb-conversion-cta span { font-size: 16px; line-height: 1; transition: transform .18s ease; }
.gfb-conversion-cta:hover { color: #fff !important; filter: brightness(1.06); transform: translateY(-1px); }
.gfb-conversion-cta:hover span { transform: translateX(2px); }

.gfb-header-host { position: relative !important; overflow: visible !important; }

.gfb-header-actions {
    display: inline-flex;
    z-index: 2147481000;
    align-items: center;
    gap: 7px;
    padding: 5px;
    border: 1px solid rgba(25, 35, 48, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 7px 22px rgba(25, 34, 48, .1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity .22s ease, transform .22s ease;
}

.gfb-header-host > .gfb-header-actions {
    position: absolute;
    top: 50%;
    right: max(18px, calc((100vw - 1280px) / 2));
    margin: 0;
    transform: translateY(-50%);
}

.gfb-header-label { padding: 0 5px 0 8px; color: #7b8796; font-size: 9px; font-weight: 800; letter-spacing: .7px; white-space: nowrap; }

.gfb-header-button {
    display: inline-flex !important;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 8px 15px !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: transform .18s ease, filter .18s ease;
}

.gfb-header-button:hover { color: #fff !important; filter: brightness(1.06); transform: translateY(-1px); }
.gfb-header-button.gfb-register { background: var(--gfb-primary) !important; box-shadow: 0 5px 14px color-mix(in srgb, var(--gfb-primary) 25%, transparent); }
.gfb-header-button.gfb-login { background: var(--gfb-secondary) !important; }

.gfb-header-fallback {
    position: fixed;
    top: max(10px, env(safe-area-inset-top));
    right: 14px;
}

body.admin-bar .gfb-header-fallback { top: 42px; }

@media (max-width: 1080px) {
    .gfb-header-label { display: none; }
    .gfb-header-host > .gfb-header-actions { right: 12px; }
    .gfb-header-button { padding-right: 11px !important; padding-left: 11px !important; font-size: 10px !important; }
}

@media (max-width: 849px) {
    .gfb-floating { width: calc(100vw - 16px); }
    .gfb-floating.gfb-bottom { bottom: max(8px, env(safe-area-inset-bottom)); }
    .gfb-runtime.gfb-mobile-sticky .gfb-floating.gfb-bottom { bottom: calc(var(--gfb-mobile-offset) + max(8px, env(safe-area-inset-bottom))); }
    .gfb-banner-grid { grid-template-columns: 1fr; }
    .gfb-banner-item img { height: auto; max-height: var(--gfb-mobile-height); }
    .gfb-conversion-bar { min-height: 48px; gap: 8px; padding: 7px 8px 7px 11px; }
    .gfb-conversion-copy span { font-size: 8px; }
    .gfb-conversion-copy strong { font-size: 11px; }
    .gfb-conversion-cta { min-height: 34px; padding: 7px 11px !important; font-size: 9.5px !important; }
    .gfb-header-actions.gfb-header-mobile-sticky,
    .gfb-header-host > .gfb-header-actions.gfb-header-mobile-sticky {
        position: fixed;
        z-index: 2147481000;
        top: auto;
        right: 10px;
        bottom: calc(var(--gfb-mobile-offset) + max(8px, env(safe-area-inset-bottom)));
        left: 10px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 7px;
        padding: 7px;
        border-radius: 18px;
        transform: none;
    }
    .gfb-header-label { display: none; }
    .gfb-header-button { min-height: 40px; font-size: 11px !important; }
    body.gfb-banner-visible .gfb-header-actions.gfb-header-mobile-sticky { opacity: 0; pointer-events: none; transform: translateY(18px); }
    body.admin-bar .gfb-header-actions.gfb-header-mobile-sticky { top: auto; }
    .gfb-header-actions:not(.gfb-header-mobile-sticky),
    .gfb-header-host > .gfb-header-actions:not(.gfb-header-mobile-sticky) { position: absolute; top: 50%; right: 8px; bottom: auto; left: auto; display: flex; width: auto; padding: 4px; transform: translateY(-50%); }
    .gfb-header-actions:not(.gfb-header-mobile-sticky) .gfb-header-button { min-height: 34px; padding: 7px 9px !important; font-size: 9.5px !important; }
}

@media (max-width: 480px) {
    .gfb-floating { width: calc(100vw - 12px); }
    .gfb-conversion-copy strong { max-width: 190px; }
    .gfb-close-all { top: 6px; right: 6px; width: 29px; height: 29px; font-size: 20px; line-height: 25px; }
}

@supports not (background: color-mix(in srgb, white 50%, transparent)) {
    .gfb-conversion-cta,
    .gfb-header-button.gfb-register { box-shadow: 0 6px 16px rgba(45, 98, 190, .25); }
}
