/* =========================================================
   COOKIE-CONSENT.CSS — Kancelaria Radcy Prawnego
   ========================================================= */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    background: var(--graphite-dark);
    border-top: 2px solid var(--gold);
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent.is-visible {
    transform: translateY(0);
}

.cookie-consent.is-hiding {
    transform: translateY(110%);
}

.cookie-consent__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.cookie-consent__text {
    flex: 1;
    font-family: var(--font-body);
    font-size: 0.81rem;
    color: rgba(255, 255, 255, 0.80);
    line-height: 1.65;
    margin: 0;
}

.cookie-consent__link {
    color: var(--gold);
    text-underline-offset: 3px;
    text-decoration: underline;
    text-decoration-color: rgba(195, 160, 75, 0.45);
    transition: color 0.2s, text-decoration-color 0.2s;
}

.cookie-consent__link:hover {
    color: var(--gold-light);
    text-decoration-color: var(--gold-light);
}

.cookie-consent__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    align-items: center;
}

.cookie-consent__btn {
    padding: 11px 28px;
    font-size: 0.73rem;
}

.cookie-consent__btn--reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.cookie-consent__btn--reject:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.06);
}

/* ── Pływający przycisk ponownego otwarcia ── */
.cookie-toggle {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9989;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--graphite-dark);
    border: 1.5px solid var(--gold);
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.35s var(--ease-out),
                transform 0.35s var(--ease-out),
                background 0.2s,
                color 0.2s,
                box-shadow 0.2s;
    pointer-events: none;
}

.cookie-toggle.is-visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.cookie-toggle:hover {
    background: var(--gold);
    color: var(--white);
    box-shadow: 0 6px 22px rgba(195, 160, 75, 0.45);
    transform: scale(1.1);
}

.cookie-toggle:active {
    transform: scale(1.02);
}

/* Chowamy przycisk gdy baner jest otwarty */
.cookie-toggle.banner-open {
    opacity: 0;
    transform: scale(0.6);
    pointer-events: none;
}

@media (max-width: 640px) {
    .cookie-toggle {
        bottom: 16px;
        left: 16px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 640px) {
    .cookie-consent__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding-top: 16px;
        padding-bottom: 20px;
    }

    .cookie-consent__actions {
        width: 100%;
    }

    .cookie-consent__btn {
        flex: 1;
        justify-content: center;
    }
}
