/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(33, 33, 33, 0.98);
    /* Very dark grey, almost black */
    color: #fff;
    padding: 1.5rem 2rem;
    z-index: 10000;
    /* Highest priority */
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);

    /* Hidden by default, animated in */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Flex layout */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;

    border-left: 4px solid var(--bs-primary);
    /* Orange accent */
}

.cookie-banner.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cookie-text-content {
    flex: 1 1 600px;
}

.cookie-banner h3 {
    margin: 0 0 0.5rem;
    font-family: var(--bs-heading-font-family);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--bs-primary);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e0e0e0;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-link {
    color: #aaa;
    font-size: 0.85rem;
    text-decoration: underline;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.cookie-link:hover {
    color: var(--bs-primary);
}

/* Custom button overrides for the banner */
.btn-cookie-accept {
    background-color: var(--bs-primary);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-cookie-accept:hover {
    background-color: #d97300;
    /* Darker orange */
    transform: translateY(-2px);
}

.btn-cookie-reject {
    background-color: transparent;
    border: 1px solid #666;
    color: #ddd;
    padding: 0.45rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cookie-reject:hover {
    border-color: #eee;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        /* Full width on mobile */
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        border-left: none;
        border-top: 4px solid var(--bs-primary);
    }

    .cookie-text-content {
        flex: auto;
        width: 100%;
        margin-bottom: 1rem;
    }

    .cookie-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .btn-cookie-accept,
    .btn-cookie-reject {
        flex: 1;
        text-align: center;
    }

    .cookie-link {
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
}

/* Footer Cookie Icon Styles */
.cookie-icon-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 50%;
    color: #aaa;
    /* Default footer link color style */
}

.cookie-icon-footer:hover {
    color: var(--bs-primary);
    transform: scale(1.1) rotate(15deg);
    background-color: rgba(255, 255, 255, 0.05);
}

.cookie-icon-footer svg {
    display: block;
}