/* Cookie Consent Banner - 80% width, centered, margined from bottom */
.cookie-consent-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1100px;
    background: #ffffff;
    border-radius: 16px !important;
    z-index: 99998;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
    border: 6px solid rgba(252, 190, 0, 0.3) !important;
    animation: cookieSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

@keyframes cookieSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 40px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.cookie-consent-banner .cookie-content-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 28px;
    flex-wrap: wrap;
}

.cookie-consent-banner .cookie-text-section {
    flex: 1;
    min-width: 280px;
}

.cookie-consent-banner .cookie-text-section h5 {
    font-size: 16px;
    color: #0f172a;
    margin-bottom: 6px;
    font-weight: 600;
}

.cookie-consent-banner .cookie-text-section p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0;
}

.cookie-consent-banner .cookie-text-section .cookie-link {
    color: #0f172a;
    text-decoration: underline;
    font-weight: 600;
    white-space: nowrap;
}

.cookie-consent-banner .cookie-text-section .cookie-link:hover {
    color: #fcbe00;
}

.cookie-consent-banner .cookie-actions-section {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-consent-banner .cookie-actions-section button {
    white-space: nowrap;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.cookie-consent-banner .cookie-actions-section button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Cookie Settings Modal */
.cookie-setting-item {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.cookie-setting-item:hover {
    background: #f1f5f9 !important;
    border-color: #e2e8f0;
}

.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
    cursor: pointer;
}

.form-switch .form-check-input:checked {
    background-color: #fcbe00;
    border-color: #fcbe00;
}

/* Cookie banner close animation */
.cookie-consent-banner.hiding {
    opacity: 0;
    transform: translate(-50%, 40px);
    transition: all 0.4s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .cookie-consent-banner {
        width: 90%;
        bottom: 20px;
    }
}

@media (max-width: 768px) {
    .cookie-consent-banner {
        width: 95%;
        bottom: 80px; /* Space for security notice banner */
        border-radius: 12px;
    }
    
    .cookie-consent-banner .cookie-content-inner {
        flex-direction: column;
        text-align: center;
        padding: 16px 20px;
        gap: 16px;
    }
    
    .cookie-consent-banner .cookie-text-section h5 {
        font-size: 14px;
    }
    
    .cookie-consent-banner .cookie-text-section p {
        font-size: 12px;
    }
    
    .cookie-consent-banner .cookie-actions-section {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-consent-banner .cookie-actions-section button {
        padding: 8px 14px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 576px) {
    .cookie-consent-banner {
        width: 95%;
        bottom: 70px;
    }
    
    .cookie-consent-banner .cookie-actions-section {
        flex-direction: column;
        gap: 8px;
    }
    
    .cookie-consent-banner .cookie-actions-section button {
        width: 100%;
    }
}