/* KanonGEO Cookie Consent Banner — Redesigned (white/blue theme) */

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 28px;
    background: #FFFFFF;
    border-top: 1px solid #E5E7EB;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    pointer-events: none;
}

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

.cookie-banner-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-banner-text {
    flex: 1;
    min-width: 0;
}

.cookie-banner-text > p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.88rem;
    color: #6B7280;
    line-height: 1.6;
    margin: 0 0 14px;
}

.cookie-banner-text > p a {
    color: #2563EB;
    text-decoration: none;
}

.cookie-banner-text > p a:hover {
    text-decoration: underline;
}

/* Settings panel (hidden by default) */
#cookie-settings-panel {
    display: none;
    margin-bottom: 14px;
    padding: 16px 20px;
    background: #F8F9FA;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
}

#cookie-settings-panel.show {
    display: block;
}

.cookie-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-setting-label strong {
    display: block;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1A1A2E;
    margin-bottom: 2px;
}

.cookie-setting-label span {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.8rem;
    color: #6B7280;
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #D1D5DB;
    border-radius: 24px;
    transition: background 0.25s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #FFFFFF;
    border-radius: 50%;
    transition: transform 0.25s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: #2563EB;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.cookie-settings-actions {
    margin-top: 12px;
    text-align: right;
}

.cookie-save-btn {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #FFFFFF;
    background: #2563EB;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cookie-save-btn:hover {
    background: #1D4ED8;
}

/* Action buttons row */
.cookie-banner-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-btn {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn.accept {
    background: #2563EB;
    color: #fff;
}

.cookie-btn.accept:hover {
    background: #1D4ED8;
}

.cookie-btn.settings {
    background: transparent;
    color: #6B7280;
    border: 1px solid #E5E7EB;
}

.cookie-btn.settings:hover {
    color: #1A1A2E;
    border-color: #2563EB;
}

.cookie-btn.reject {
    background: transparent;
    color: #6B7280;
    border: 1px solid #E5E7EB;
}

.cookie-btn.reject:hover {
    color: #1A1A2E;
    border-color: #D1D5DB;
}

/* Responsive */
@media (max-width: 768px) {
    #cookie-banner {
        flex-direction: column;
        gap: 8px;
        padding: 16px 20px;
    }

    .cookie-banner-icon {
        font-size: 1.3rem;
    }

    .cookie-banner-text > p {
        font-size: 0.82rem;
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
        padding: 10px 12px;
        font-size: 0.78rem;
    }

    .cookie-setting-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
