/* Minimalist Cookie Banner Styles */

:root {
    --itccb-bg: rgba(20, 20, 22, 0.85); /* Dark glass */
    --itccb-blur: blur(20px);
    --itccb-text: #ffffff;
    --itccb-text-muted: rgba(255, 255, 255, 0.7);
    --itccb-accent: #0071e3; /* Apple Blue */
    --itccb-accent-hover: #005bb5;
    --itccb-border: rgba(255, 255, 255, 0.1);
    --itccb-radius: 20px;
}

body.light-theme {
    --itccb-bg: rgba(255, 255, 255, 0.85); /* Light glass */
    --itccb-text: #1d1d1f;
    --itccb-text-muted: rgba(0, 0, 0, 0.6);
    --itccb-border: rgba(0, 0, 0, 0.1);
}

.itccb-cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: calc(100% - 60px);
    max-width: 420px;
    background: var(--itccb-bg);
    backdrop-filter: var(--itccb-blur);
    -webkit-backdrop-filter: var(--itccb-blur);
    border: 1px solid var(--itccb-border);
    border-radius: var(--itccb-radius);
    padding: 24px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 99999; /* Above everything */
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.itccb-cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Hide inherently if 'hidden' attribute is present before JS removes it */
.itccb-cookie-banner[hidden] {
    display: none !important;
}

.itccb-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.itccb-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--itccb-text);
    margin: 0;
}

.itccb-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--itccb-text-muted);
    margin: 0;
}

.itccb-actions {
    display: flex;
    gap: 12px;
}

.itccb-btn {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1; /* Make buttons equal width */
    text-align: center;
}

.itccb-btn-primary {
    background: var(--itccb-accent);
    color: #fff;
}

.itccb-btn-primary:hover {
    background: var(--itccb-accent-hover);
}

.itccb-btn-secondary {
    background: transparent;
    color: var(--itccb-text);
    border: 1px solid var(--itccb-border);
}

.itccb-btn-secondary:hover {
    background: rgba(128, 128, 128, 0.1);
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .itccb-cookie-banner {
        bottom: 20px;
        left: 20px;
        width: calc(100% - 40px);
        padding: 20px;
    }
    
    .itccb-actions {
        flex-direction: column-reverse; /* Put Reject below Accept */
    }
}
