/**
 * Cookie Consent Banner Styles
 */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background-color: rgba(33, 37, 41, 0.95);
    color: #ffffff;
    border-top: 3px solid #0d6efd;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
    margin: 0;
    border-radius: 0;
    animation: slideUp 0.3s ease-out;
}

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

.cookie-consent .container {
    max-width: 1200px;
}

.cookie-consent p {
    margin-bottom: 0;
    line-height: 1.5;
}

.cookie-consent strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cookie-consent .alert-link {
    color: #6ea8fe;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-consent .alert-link:hover {
    color: #9ec5fe;
}

.cookie-consent .btn {
    min-width: 100px;
    font-weight: 500;
}

.cookie-consent .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.cookie-consent .btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.cookie-consent .btn-outline-secondary {
    color: #adb5bd;
    border-color: #6c757d;
}

.cookie-consent .btn-outline-secondary:hover {
    color: #ffffff;
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .cookie-consent {
        padding: 1.5rem 0;
    }

    .cookie-consent strong {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .cookie-consent p {
        font-size: 0.9rem;
    }

    .cookie-consent .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .cookie-consent .btn:last-child {
        margin-bottom: 0;
    }

    .cookie-consent .col-md-4 {
        margin-top: 1rem !important;
    }
}

/* Extra small devices */
@media (max-width: 575px) {
    .cookie-consent .btn {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cookie-consent {
        background-color: #000000;
        border-top-width: 4px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent {
        animation: none;
    }
}

/* Safe area insets for notched devices */
@supports (padding: max(0px)) {
    .cookie-consent {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}
