/* Modern "Floating Card" Consent Banner */
#consent-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 650px; /* Increased for better desktop proportions */
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 1.75rem;
    display: none;
    font-family: inherit;
    border: 1px solid #e2e8f0;
}

#consent-banner.visible {
    display: block;
    animation: slideUpPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* This fixes the tight spacing issue */
.consent-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; 
}

@keyframes slideUpPop {
    0% { bottom: -100px; opacity: 0; transform: translateX(-50%) scale(0.95); }
    100% { bottom: 24px; opacity: 1; transform: translateX(-50%) scale(1); }
}

.consent-text {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

.consent-text a {
    color: #0f172a;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.consent-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.consent-btn {
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    flex: 1; /* Makes buttons perfectly equal width on desktop */
}

/* The Accept Button: Deep Slate */
.consent-btn-accept {
    background: #0f172a; 
    color: #ffffff;
}

.consent-btn-accept:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* The Essential Button: Ghost Gray */
.consent-btn-essential {
    background: #f1f5f9;
    color: #64748b;
}

.consent-btn-essential:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Mobile adjustments */
@media (max-width: 500px) {
    #consent-banner {
        padding: 1.5rem;
        bottom: 16px;
    }
    .consent-inner {
        gap: 1.25rem;
    }
    .consent-buttons {
        flex-direction: column-reverse; /* Puts "Accept" on top for easier thumb reach */
        gap: 0.75rem;
    }
    .consent-btn {
        width: 100%;
        padding: 0.9rem 1.2rem;
    }
}