/* ===== Cookie Banner Styles ===== */

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: calc(100% - 40px);
    z-index: 9999;
    animation: slideUp 0.4s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cookie-banner.hidden {
    display: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.cookie-banner-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(0, 0, 0, 0.05) inset;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.cookie-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cookie-banner-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.cookie-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1;
}

.cookie-close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.cookie-banner-text {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

/* Cookie Categories */
.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cookie-category {
    display: flex;
    align-items: center;
}

.cookie-category-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.cookie-category-label:hover {
    background: rgba(0, 0, 0, 0.03);
}

.cookie-category-label input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.cookie-category-label:has(input[type="checkbox"]:disabled) {
    cursor: not-allowed;
}

.cookie-category-label:has(input[type="checkbox"]:disabled):hover {
    background: transparent;
}

.cookie-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.cookie-checkmark {
    position: relative;
    flex-shrink: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 5px;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.cookie-checkbox:checked ~ .cookie-checkmark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.cookie-checkbox:disabled ~ .cookie-checkmark {
    background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
    border-color: #9e9e9e;
    opacity: 0.7;
}

.cookie-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cookie-checkbox:checked ~ .cookie-checkmark:after {
    display: block;
}

.cookie-category-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cookie-category-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.cookie-category-desc {
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}

/* Cookie Banner Actions */
.cookie-banner-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.cookie-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.cookie-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.cookie-btn-primary:active {
    transform: translateY(0);
}

.cookie-btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.cookie-btn-secondary:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #764ba2;
}

.cookie-btn-text {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.cookie-btn-text:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

/* Cookie Banner Footer */
.cookie-banner-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #888;
}

.cookie-banner-footer a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cookie-banner-footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .cookie-banner {
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        width: 100%;
        transform: none;
        border-radius: 0;
    }

    .cookie-banner-content {
        border-radius: 16px 16px 0 0;
        padding: 20px;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-btn {
        min-width: 100%;
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
