/* Reset - motyw czasem stosuje globalne style h2/p/button (np. gradientowy
   tekst zaprojektowany pod ciemne tło), które inaczej "wyciekałyby" do bannera. */
.fcm-banner,
.fcm-banner * {
    background-image: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
    text-shadow: none;
    box-sizing: border-box;
}

.fcm-banner {
    position: fixed;
    z-index: 999999;
    background: var(--fcm-bg, #ffffff);
    color: var(--fcm-text, #111827);
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .18), 0 2px 8px rgba(0, 0, 0, .08);
    border-radius: 20px;
}

.fcm-banner[hidden] {
    display: none;
}

/* --- Pływająca karta (róg ekranu) --- */
.fcm-position-card-bottom-left,
.fcm-position-card-bottom-right {
    bottom: 20px;
    max-width: 380px;
    width: calc(100% - 40px);
    animation: fcm-pop-in .25s ease-out;
}

.fcm-position-card-bottom-left {
    left: 20px;
}

.fcm-position-card-bottom-right {
    right: 20px;
}

/* --- Pasek na całą szerokość --- */
.fcm-position-bar-bottom,
.fcm-position-bar-top {
    left: 16px;
    right: 16px;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 16px;
}

.fcm-position-bar-bottom {
    bottom: 16px;
    animation: fcm-slide-up .25s ease-out;
}

.fcm-position-bar-top {
    top: 16px;
    animation: fcm-slide-down .25s ease-out;
}

.fcm-position-bar-bottom .fcm-banner__content,
.fcm-position-bar-top .fcm-banner__content {
    max-width: 1100px;
    margin: 0 auto;
}

.fcm-position-bar-bottom .fcm-banner__icon,
.fcm-position-bar-top .fcm-banner__icon {
    display: none;
}

/* --- Okno modalne --- */
.fcm-position-modal-center {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    box-shadow: none;
    background: rgba(15, 15, 20, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.fcm-position-modal-center .fcm-banner__content {
    max-width: 440px;
    width: calc(100% - 40px);
    background: var(--fcm-bg, #ffffff);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    text-align: center;
}

.fcm-position-modal-center .fcm-banner__icon {
    margin-left: auto;
    margin-right: auto;
}

.fcm-position-modal-center .fcm-banner__actions {
    flex-direction: column;
}

.fcm-position-modal-center .fcm-banner__actions .fcm-btn {
    width: 100%;
}

@keyframes fcm-pop-in {
    from { opacity: 0; transform: translateY(16px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fcm-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fcm-slide-down {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Wspólne wnętrze karty --- */
.fcm-banner__content {
    padding: 24px;
}

.fcm-banner__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--fcm-accent, #16a34a) 15%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 12px;
}

.fcm-banner h2.fcm-banner__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
    color: var(--fcm-text, #111827);
    background: none;
    background-image: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
    opacity: 1;
}

.fcm-banner__description {
    margin: 0 0 16px;
    opacity: .75;
}

.fcm-banner__description strong {
    font-weight: 700;
    opacity: 1;
}

.fcm-banner__categories {
    display: grid;
    gap: 12px;
    margin: 0 0 16px;
    padding: 14px;
    background: rgba(127, 127, 127, .08);
    border-radius: 12px;
}

.fcm-banner__categories[hidden] {
    display: none;
}

.fcm-category {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
    align-items: start;
    text-align: left;
}

.fcm-category__label {
    font-weight: 700;
}

.fcm-category__description {
    grid-column: 2;
    opacity: .7;
    font-size: 12.5px;
}

.fcm-banner__links {
    margin: 0 0 16px;
    display: flex;
    gap: 16px;
}

.fcm-banner__links a {
    color: var(--fcm-accent, #16a34a);
    text-decoration: underline;
    font-weight: 600;
}

.fcm-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fcm-btn {
    flex: 1;
    min-width: 110px;
    border: 1.5px solid color-mix(in srgb, var(--fcm-text, #111827) 18%, transparent);
    background: transparent;
    color: inherit;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: filter .15s ease, transform .05s ease;
}

.fcm-btn:hover {
    filter: brightness(.96);
}

.fcm-btn:active {
    transform: scale(.98);
}

.fcm-btn--ghost:hover {
    background: rgba(127, 127, 127, .08);
}

.fcm-btn--accent {
    background: var(--fcm-accent, #16a34a);
    color: var(--fcm-accent-text, #ffffff);
    border-color: transparent;
}

.fcm-btn--accent:hover {
    filter: brightness(1.08);
}

/* Odmowa musi mieć taką samą wagę wizualną jak zgoda (wymóg EDPB/UODO -
   "dark patterns"): pełne, kontrastowe tło, nie "duch" jak "Dostosuj". */
.fcm-btn--secondary {
    background: color-mix(in srgb, var(--fcm-text, #111827) 88%, transparent);
    color: var(--fcm-bg, #ffffff);
    border-color: transparent;
}

.fcm-btn--secondary:hover {
    filter: brightness(1.15);
}

/* Pływający przycisk "Ustawienia cookies" - stały dostęp do zmiany zgody,
   widoczny cały czas (poza chwilą, gdy sam baner jest otwarty). */
.fcm-manage-consent {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 999998;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fcm-manage-consent[hidden] {
    display: none;
}

.fcm-manage-consent:hover {
    filter: brightness(1.05);
}

@media (max-width: 640px) {
    .fcm-position-card-bottom-left,
    .fcm-position-card-bottom-right {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-width: none;
    }

    .fcm-position-bar-bottom .fcm-banner__content,
    .fcm-position-bar-top .fcm-banner__content {
        grid-template-columns: 1fr;
    }

    .fcm-banner__actions {
        flex-direction: column;
    }

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