/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 90%;
    max-width: 800px;
    transform: translateY(100px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(21, 112, 166, 0.2);
    border-radius: var(--radius-lg, 20px);
    padding: 2.25rem 2rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    opacity: 0;
}

.cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cookie-content h4 {
    color: var(--primary-dark, #0d4d73);
    font-size: 1.25rem;
    margin: 0;
}

.cookie-content p {
    color: var(--text-muted, #666666);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.cookie-content a {
    color: var(--primary-color, #1570a6);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    flex: 1;
    min-width: 150px;
}

.btn-accept {
    background: var(--primary-color, #1570a6);
    color: white;
}

.btn-accept:hover {
    background: var(--primary-dark, #0d4d73);
    transform: translateY(-2px);
}

.btn-essential {
    background: rgba(21, 112, 166, 0.1);
    color: var(--primary-color, #1570a6);
    border: 1px solid rgba(21, 112, 166, 0.2);
}

.btn-essential:hover {
    background: rgba(21, 112, 166, 0.15);
}

.btn-reject {
    background: #f1f3f5;
    color: #495057;
}

.btn-reject:hover {
    background: #e9ecef;
}

@media (max-width: 768px) {
    .cookie-banner {
        /* Robust Centering Strategy */
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;

        /* Mobile Specifics */
        width: 92%;
        /* Safe width with margins */
        max-width: 450px;
        bottom: 20px;
        padding: 1.5rem;
        gap: 1rem;
        border-radius: 20px;

        /* Animation Reset */
        transform: translateY(100px);
    }

    .cookie-banner.visible {
        transform: translateY(0);
    }

    .cookie-content h4 {
        font-size: 1.2rem;
        text-align: center;
        margin-bottom: 0.25rem;
    }

    .cookie-content p {
        font-size: 0.95rem;
        text-align: center;
        line-height: 1.4;
    }

    .cookie-buttons {
        flex-direction: column;
        gap: 0.7rem;
    }

    .cookie-btn {
        width: 100%;
        min-width: unset;
        padding: 0.8rem 1.25rem;
        font-size: 1rem;
        min-height: 48px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 14px;
    }

    .btn-accept {
        order: 1;
        background: var(--primary-color, #1570a6);
        box-shadow: 0 4px 12px rgba(21, 112, 166, 0.2);
    }

    .btn-essential {
        order: 2;
    }

    .btn-reject {
        order: 3;
        background: transparent;
        color: #999;
        font-size: 0.85rem;
        min-height: 36px;
        text-decoration: underline;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 1.25rem;
        bottom: 1rem;
        left: 12px;
        right: 12px;
        width: auto;
        border-radius: 20px;
    }

    .cookie-content h4 {
        font-size: 1.15rem;
    }

    .cookie-content p {
        font-size: 0.9rem;
    }
}