/*
 * Panel zgody na ciasteczka motywu bank.
 *
 * Przyciski "Zezwól na wszystkie" i "Tylko niezbędne" muszą mieć identyczną wagę
 * wizualną - nierówne przyciski to dark pattern kwestionowany przez UODO/EDPB.
 */
.bank-cookie-consent {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99999;
    background-color: #fff;
    border-top: 3px solid var(--color-1st, #af0f26);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.bank-cookie-consent[hidden] {
    display: none;
}

/* Panel dostaje fokus programowo przy otwarciu - obramowanie nic tu nie wnosi. */
.bank-cookie-consent:focus {
    outline: none;
}

.bank-cookie-consent__inner {
    max-width: 1170px;
    margin: 0 auto;
    padding: 20px 15px;
}

.bank-cookie-consent__heading {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.bank-cookie-consent__message {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.bank-cookie-consent__policy-link {
    color: var(--color-1st, #af0f26);
    text-decoration: underline;
}

.bank-cookie-consent__categories {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e4e4e4;
}

.bank-cookie-consent__categories[hidden] {
    display: none;
}

.bank-cookie-consent__category + .bank-cookie-consent__category {
    margin-top: 12px;
}

.bank-cookie-consent__category-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    cursor: pointer;
}

.bank-cookie-consent__category-label input[disabled] {
    cursor: not-allowed;
}

.bank-cookie-consent__category-label input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--color-1st, #af0f26);
}

.bank-cookie-consent__category-description {
    margin: 4px 0 0 24px;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

.bank-cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.bank-cookie-consent__button {
    min-width: 200px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    text-align: center;
    background-color: var(--color-1st, #af0f26);
    border: 2px solid var(--color-1st, #af0f26);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bank-cookie-consent__button:hover,
.bank-cookie-consent__button:focus {
    color: var(--color-1st, #af0f26);
    background-color: #fff;
}

.bank-cookie-consent__button:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.bank-cookie-consent__button--secondary {
    min-width: 0;
    color: var(--color-1st, #af0f26);
    background-color: #fff;
}

.bank-cookie-consent__button--secondary:hover,
.bank-cookie-consent__button--secondary:focus {
    color: #fff;
    background-color: var(--color-1st, #af0f26);
}

.bank-cookie-consent__button[hidden] {
    display: none;
}

/* Pływająca ikona w lewym dolnym rogu, otwierająca panel ponownie. */
.bank-cookie-badge {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    color: var(--color-1st, #af0f26);
    background-color: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: bottom 0.25s ease, transform 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.bank-cookie-badge[hidden] {
    display: none;
}

.bank-cookie-badge:hover,
.bank-cookie-badge:focus {
    color: #fff;
    background-color: var(--color-1st, #af0f26);
    border-color: var(--color-1st, #af0f26);
    transform: scale(1.08);
}

.bank-cookie-badge:focus-visible {
    outline: 2px solid var(--color-1st, #af0f26);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .bank-cookie-badge {
        transition: none;
    }

    .bank-cookie-badge:hover,
    .bank-cookie-badge:focus {
        transform: none;
    }
}

@media screen and (max-width: 767px) {
    .bank-cookie-badge {
        bottom: 15px;
        left: 15px;
        width: 42px;
        height: 42px;
    }

    .bank-cookie-consent {
        max-height: 85vh;
        overflow-y: auto;
    }

    .bank-cookie-consent__actions {
        flex-direction: column;
    }

    .bank-cookie-consent__button {
        width: 100%;
        min-width: 0;
    }
}
