/* ==========================================================================
   COOKIE BANNER COMPONENT
   ========================================================================== */

.cookie-banner {
    position: fixed;
    bottom: 5px;
    left: 20px;
    right: 20px;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(18, 15, 45, 0.15);
    border-radius: 15px;
    z-index: 9999;
    padding: 20px;
    display: none;
    /* Hidden by default, shown via JS */
    border: 2px solid var(--primary);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text {
    flex: 1;
}

.cookie-text h5 {
    color: var(--dark);
    font-family: 'Atma', cursive;
    margin-bottom: 8px;
    font-weight: 700;
}

.cookie-text p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Custom button styles for the banner */
.btn-cookie-accept {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cookie-accept:hover {
    background-color: #1a5bb8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 120, 235, 0.3);
}

.btn-cookie-reject {
    background-color: transparent;
    color: #888;
    border: 1px solid #ddd;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cookie-reject:hover {
    background-color: #f8f9fa;
    color: var(--secondary);
    border-color: var(--secondary);
}

/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ======================================== */

@media (max-width: 992px) {
    .cookie-banner {
        bottom: 5;
        left: 10px;
        right: 10px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 5;
        left: 1px;
        right: 1px;
        padding: 12px;
        border-radius: 12px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .cookie-text h5 {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }

    .cookie-text p {
        font-size: 0.75rem;
    }

    .cookie-extended-text {
        display: none;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
        gap: 6px;
    }

    .btn-cookie-accept,
    .btn-cookie-reject {
        flex: 1;
        padding: 5px 8px;
        font-size: 0.7rem;
        border-radius: 30px;
    }
}
