.gcc-banner,
.gcc-banner * {
    box-sizing: border-box;
}

.gcc-banner {
    position: fixed;
    z-index: 2147483000;
    left: 16px;
    right: 16px;
    bottom: 16px;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity .32s ease, transform .32s ease;
    font-family: inherit;
}

.gcc-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.gcc-banner.is-leaving {
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}

.gcc-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 18px 20px;
}

.gcc-banner__content {
    min-width: 0;
    max-width: 780px;
}

.gcc-banner__title {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
}

.gcc-banner__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.gcc-banner__text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity .18s ease;
}

.gcc-banner__text a:hover {
    opacity: .7;
}

.gcc-banner__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.gcc-btn {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    transition: transform .18s ease, opacity .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.gcc-btn:hover {
    transform: translateY(-1px);
}

.gcc-btn:active {
    transform: translateY(0);
}

.gcc-btn:focus-visible,
.gcc-banner__text a:focus-visible,
.gcc-settings-link:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

/* Universal monochrome theme */
.gcc-theme-mono .gcc-banner__inner {
    color: #111;
    background: #fff;
    border: 1px solid rgba(0,0,0,.14);
    border-radius: 16px;
    box-shadow: 0 16px 50px rgba(0,0,0,.16);
}

.gcc-theme-mono .gcc-btn--primary {
    color: #fff;
    background: #111;
    border: 1px solid #111;
}

.gcc-theme-mono .gcc-btn--primary:hover {
    background: #2b2b2b;
    border-color: #2b2b2b;
}

.gcc-theme-mono .gcc-btn--secondary {
    color: #111;
    background: #fff;
    border: 1px solid #111;
}

.gcc-theme-mono .gcc-btn--secondary:hover {
    background: #f3f3f3;
}

/* Site theme. JS derives safe colors from the current site; CSS fallbacks remain readable. */
.gcc-theme-site .gcc-banner__inner {
    color: var(--gcc-site-text, #fff) !important;
    background: var(--gcc-site-bg, #111) !important;
    border: 1px solid var(--gcc-site-border, rgba(255,255,255,.24)) !important;
    border-radius: var(--gcc-site-radius, 14px) !important;
    box-shadow: var(--gcc-site-shadow, 0 12px 36px rgba(0,0,0,.22)) !important;
}

/* Protect the consent UI from broad site rules such as `p {color:#fff}` or
   `button {background:...}`. The site theme still inherits the site's font,
   while its palette is supplied through the CSS variables above. */
.gcc-theme-site .gcc-banner__content,
.gcc-theme-site .gcc-banner__title,
.gcc-theme-site .gcc-banner__text,
.gcc-theme-site .gcc-banner__text a,
.gcc-theme-site .gcc-banner__actions {
    color: var(--gcc-site-text, #fff) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.gcc-theme-site .gcc-banner__title,
.gcc-theme-site .gcc-banner__text {
    background: transparent !important;
}

.gcc-theme-site .gcc-btn--primary:not(.gcc-custom-btn) {
    color: var(--gcc-site-primary-text, #111) !important;
    background: var(--gcc-site-primary, #fff) !important;
    border: 1px solid var(--gcc-site-primary, #fff) !important;
}

.gcc-theme-site .gcc-btn--primary:not(.gcc-custom-btn):hover {
    filter: brightness(.94);
}

.gcc-theme-site .gcc-btn--secondary:not(.gcc-custom-btn) {
    color: var(--gcc-site-secondary-text, var(--gcc-site-text, #fff)) !important;
    background: transparent !important;
    border: 1px solid currentColor !important;
}

.gcc-theme-site .gcc-btn--secondary:not(.gcc-custom-btn):hover {
    background: color-mix(in srgb, currentColor 10%, transparent) !important;
}

.gcc-position-left {
    right: auto;
    max-width: 620px;
}

.gcc-position-left .gcc-banner__inner,
.gcc-position-right .gcc-banner__inner {
    align-items: flex-start;
    flex-direction: column;
}

.gcc-position-right {
    left: auto;
    max-width: 620px;
}

.gcc-position-left .gcc-banner__actions,
.gcc-position-right .gcc-banner__actions {
    width: 100%;
}

.gcc-settings-link {
    position: fixed !important;
    z-index: 2147482990 !important;
    left: 16px !important;
    bottom: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    border: 1px solid rgba(127,127,127,.45) !important;
    border-radius: 999px !important;
    background: rgba(17,17,17,.94) !important;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.20) !important;
    font: 600 12px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    text-decoration: none !important;
    cursor: pointer !important;
    opacity: .82;
    transform: translateY(0);
    transition: opacity .18s ease, transform .18s ease, box-shadow .18s ease !important;
    -webkit-tap-highlight-color: transparent;
}

.gcc-settings-link[hidden] {
    display: none !important;
}

.gcc-settings-link:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0,0,0,.26) !important;
}

.gcc-settings-link:active { transform: translateY(0); }

.gcc-settings-link__icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #111 !important;
    font: 800 11px/1 Arial, sans-serif !important;
}

.gcc-settings-link__label {
    display: inline !important;
    color: inherit !important;
}

.gcc-debug-panel {
    position: fixed;
    z-index: 2147483640;
    top: 12px;
    right: 12px;
    width: min(380px, calc(100vw - 24px));
    padding: 14px;
    border-radius: 12px;
    background: #111;
    color: #fff;
    font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    box-shadow: 0 10px 35px rgba(0,0,0,.28);
}

.gcc-debug-panel strong { display:block; margin-bottom:8px; font-size:13px; }
.gcc-debug-panel div + div { margin-top:4px; }

@media (max-width: 820px) {
    .gcc-banner__inner {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .gcc-banner__content {
        max-width: none;
    }

    .gcc-banner__actions {
        width: 100%;
    }

    .gcc-btn {
        flex: 1 1 0;
    }
}

@media (max-width: 560px) {
    .gcc-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }

    .gcc-banner__inner {
        padding: 16px;
        border-radius: 14px;
    }

    .gcc-banner__title {
        font-size: 17px;
    }

    .gcc-banner__text {
        font-size: 13px;
    }

    .gcc-banner__actions {
        flex-direction: column;
        gap: 8px;
    }

    .gcc-btn {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .gcc-settings-link {
        left: 10px !important;
        bottom: 10px !important;
        width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        padding: 0 !important;
        justify-content: center !important;
    }

    .gcc-settings-link__icon {
        width: 24px !important;
        height: 24px !important;
        flex-basis: 24px !important;
    }

    .gcc-settings-link__label {
        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;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gcc-banner,
    .gcc-btn,
    .gcc-banner__text a {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
