/*--------------------------------------------------------------
# Cookie Consent Banner
--------------------------------------------------------------*/

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.cookie-banner.visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-banner__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.cookie-banner.visible .cookie-banner__backdrop {
    opacity: 1;
}

.cookie-banner__container {
    background: var(--surface-color, #222);
    border-top: 3px solid var(--accent-color, #00933c);
    padding: 1.5rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
}

.cookie-banner__content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-banner__icon {
    flex-shrink: 0;
    font-size: 2rem;
    color: var(--accent-color, #00933c);
    margin-top: 0.15rem;
}

.cookie-banner__title {
    font-family: var(--heading-font, 'Raleway', sans-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--heading-color, #fff);
    margin: 0 0 0.35rem;
}

.cookie-banner__desc {
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* Actions row */
.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

.cookie-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.cookie-banner__btn:active {
    transform: scale(0.97);
}

.cookie-banner__btn--accept {
    background: var(--accent-color, #00933c);
    color: #fff;
}

.cookie-banner__btn--accept:hover {
    background: #00a745;
    box-shadow: 0 2px 12px rgba(0, 147, 60, 0.3);
}

.cookie-banner__btn--reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.cookie-banner__btn--reject:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.cookie-banner__btn--settings {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.cookie-banner__btn--settings:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Settings panel */
.cookie-settings__divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.cookie-settings__group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cookie-settings__item {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 0.85rem 1rem;
}

.cookie-settings__info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.cookie-settings__info strong {
    color: var(--heading-color, #fff);
    font-size: 0.9rem;
}

.cookie-settings__badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-color, #00933c);
    background: rgba(0, 147, 60, 0.12);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    white-space: nowrap;
}

.cookie-settings__label {
    cursor: pointer;
    margin-bottom: 0;
}

.cookie-settings__detail {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0.3rem 0 0;
    line-height: 1.4;
}

.cookie-settings__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* Checked state for switches */
.cookie-settings .form-check-input:checked {
    background-color: var(--accent-color, #00933c);
    border-color: var(--accent-color, #00933c);
}

/* Mobile */
@media (max-width: 768px) {
    .cookie-banner__container {
        padding: 1.25rem 1rem;
        border-radius: 14px 14px 0 0;
    }

    .cookie-banner__content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cookie-banner__icon {
        font-size: 1.5rem;
    }

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

    .cookie-banner__btn {
        width: 100%;
    }
}
