/* Cookie Consent Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Mobile bottom sheet style */
}

.cookie-modal__content {
    background-color: var(--white);
    padding: 1.5rem;
    width: 100%;
    max-width: 600px;
    max-height: 80vh; /* Prevent covering entire screen on short displays */
    overflow-y: auto; /* Enable scrolling for long content */
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px 8px 0 0; /* Rounded top corners for mobile */
    animation: slideUp 0.3s ease-out;
}

.cookie-modal__body {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

@media (max-width: 767px) {
    .cookie-modal__content {
        padding: 1rem;
    }
    .cookie-modal__body {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
}

.cookie-modal__body p {
    margin-bottom: 0.8rem;
}

.cookie-modal__actions {
    display: flex;
    justify-content: center;
}

.cookie-modal__btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.cookie-modal__btn:hover {
    background-color: #357abd; /* Darker primary color */
}

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

@media (min-width: 768px) {
    .cookie-modal {
        align-items: center; /* Center on desktop */
    }

    .cookie-modal__content {
        border-radius: 8px; /* Rounded corners on desktop */
        animation: fadeIn 0.3s ease-out;
    }

    .cookie-modal__btn {
        width: auto;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: scale(0.95);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }
}
