/* CarShub365 - Cookie consent banner */
#consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(33, 37, 41, 0.98);
    color: #f8f9fa;
    padding: 1rem 1.5rem;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
    font-size: 0.95rem;
}

#consent-banner .consent-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

#consent-banner .consent-banner-text {
    flex: 1 1 280px;
}

#consent-banner .consent-banner-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

#consent-banner .consent-banner-message {
    color: rgba(248, 249, 250, 0.9);
    margin: 0;
}

#consent-banner .consent-banner-message a {
    color: #6ea8fe;
    text-decoration: underline;
}

#consent-banner .consent-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

#consent-banner .consent-banner-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

#consent-banner .consent-banner-btn-accept {
    background: #0d6efd;
    color: #fff;
}

#consent-banner .consent-banner-btn-accept:hover {
    background: #0b5ed7;
    color: #fff;
}

#consent-banner .consent-banner-btn-decline {
    background: transparent;
    color: #adb5bd;
    border: 1px solid #6c757d;
}

#consent-banner .consent-banner-btn-decline:hover {
    color: #f8f9fa;
    border-color: #adb5bd;
}

/* Mobile: compact, readable, touch-friendly */
@media (max-width: 576px) {
    #consent-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 0.875rem 1rem 1rem;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
        border-radius: 12px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
        max-height: 50vh;
        overflow-y: auto;
    }
    #consent-banner .consent-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        text-align: left;
    }
    #consent-banner .consent-banner-text {
        flex: none;
    }
    #consent-banner .consent-banner-title {
        font-size: 0.9375rem;
        margin-bottom: 0.2rem;
    }
    #consent-banner .consent-banner-message {
        font-size: 0.8125rem;
        line-height: 1.4;
        color: rgba(248, 249, 250, 0.88);
    }
    #consent-banner .consent-banner-message a {
        display: inline-block;
        margin-top: 0.15rem;
    }
    #consent-banner .consent-banner-actions {
        flex-direction: row;
        justify-content: stretch;
        gap: 0.5rem;
        margin-top: 0.25rem;
    }
    #consent-banner .consent-banner-btn {
        flex: 1;
        min-height: 44px;
        padding: 0.6rem 0.75rem;
        font-size: 0.9375rem;
        border-radius: 8px;
    }
}

/* Very small screens: keep banner from touching edges */
@media (max-width: 380px) {
    #consent-banner {
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 0.75rem;
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    }
}
