.cookie-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.cookie-popup-content {
    background: #0078D7;
    color: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: cookiePopupSlideIn 0.3s ease-out;
}

@keyframes cookiePopupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cookie-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-popup-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.cookie-popup-body {
    padding: 20px 24px;
}

.cookie-popup-body p {
    margin-bottom: 20px;
    line-height: 1.5;
    color: white;
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-category {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-slider {
    background-color: white;
}

.cookie-toggle input:focus + .cookie-slider {
    box-shadow: 0 0 0 3px rgba(0, 120, 215, 0.3);
}

.cookie-toggle input:checked + .cookie-slider:before {
    transform: translateX(20px);
    background-color: #0078D7;
}

.cookie-toggle input:disabled + .cookie-slider {
    background-color: white;
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-category-info h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.cookie-category-info p {
    margin: 0;
    font-size: 0.875rem;
    color: white;
    opacity: 0.9;
    line-height: 1.4;
}

.cookie-popup-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 100px;
}

.cookie-btn-primary {
    background-color: white;
    color: #0078D7;
}

.cookie-btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
}

.cookie-btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.cookie-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #0078D7;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 120, 215, 0.3);
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-btn:hover {
    background-color: #106ebe;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 120, 215, 0.4);
}

.cookie-settings-btn:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .cookie-popup-content {
        width: 95%;
        margin: 20px;
    }
    
    .cookie-popup-header {
        padding: 16px 20px 12px;
    }
    
    .cookie-popup-body {
        padding: 16px 20px;
    }
    
    .cookie-popup-footer {
        padding: 12px 20px 20px;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-settings-btn {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (prefers-color-scheme: dark) {
    .cookie-popup-content {
        background: #0078D7;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .cookie-category {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .cookie-popup-header,
    .cookie-popup-footer {
        border-color: rgba(255, 255, 255, 0.2);
    }
}
