/* --- Cookie Alert (ładniejsza wersja) --- */

.cookiealert {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 16px;
    width: calc(100% - 32px);
    margin: 0 auto !important;

    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(120%);

    /* wygląd */
    color: #e9eef4;
    background: rgba(20, 22, 26, 0.92); /* bez szachownicy */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.35);

    /* układ */
    padding: 14px 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;

    font-size: 14px;
    line-height: 1.35;

    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

/* na bardzo wąskich ekranach przyklej do dołu bez marginesów */
@media (max-width: 520px) {
    .cookiealert {
        bottom: 0;
        width: 100%;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        padding: 14px 12px;
    }
}

.cookiealert.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0ms; /* pokaż od razu */
}

/* tekst i link */
.cookiealert a {
    color: #9bd0ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookiealert a:hover {
    opacity: 0.9;
}

/* jeśli masz tam checkbox/link "Dowiedz się więcej" itp. */
.cookiealert p,
.cookiealert span {
    margin: 0;
}

/* kontener na przyciski (jeśli w HTML masz je obok siebie) */
.cookiealert .cookiealert-actions,
.cookiealert .cookiealert__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

/* przycisk akceptacji */
.cookiealert .acceptcookies {
    appearance: none;
    border: 0;
    cursor: pointer;

    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;

    color: #0b1220;
    background: #9bd0ff;
    box-shadow: 0 10px 24px rgba(155, 208, 255, 0.25);

    transition: transform 120ms ease, filter 120ms ease;
}

.cookiealert .acceptcookies:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.cookiealert .acceptcookies:active {
    transform: translateY(0px) scale(0.99);
}

/* X zamknięcia (jeśli masz) */
.cookiealert .close,
.cookiealert button.close {
    background: transparent;
    border: 0;
    color: rgba(233, 238, 244, 0.85);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 10px;
}
.cookiealert .close:hover,
.cookiealert button.close:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* jeśli plugin używa checkboxa */
.cookiealert input[type="checkbox"] {
    transform: translateY(1px);
}
