:root {
    --ix-bg: #ffffff;
    --ix-text: #1e293b;
    --ix-text-secondary: #64748b;
    --ix-border: rgba(0, 0, 0, 0.1);
    --ix-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --ix-accent-gradient: linear-gradient(90deg, #22d3ee 0%, #0ea5e9 100%);
    --ix-surface-hover: rgba(0, 0, 0, 0.05);
}

#cookie-consent-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#cookie-consent-modal.active {
    display: flex;
}

.cookie-modal-content {
    background-color: var(--ix-bg);
    color: var(--ix-text);
    border: 1px solid var(--ix-border);
    border-radius: 16px;
    box-shadow: var(--ix-shadow);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    font-family: 'Inter', sans-serif;
    animation: cookieFadeUp 0.4s ease-out;
}

@keyframes cookieFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-modal-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--ix-border);
}

.cookie-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--ix-text);
}

.cookie-modal-body {
    padding: 1.5rem;
}

.cookie-description {
    font-size: 0.9rem;
    color: var(--ix-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.cookie-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ix-border);
}

.cookie-category:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cookie-category-info h4 {
    font-size: 1rem;
    margin: 0 0 0.25rem;
    color: var(--ix-text);
}

.cookie-category-info p {
    font-size: 0.8rem;
    margin: 0;
    color: var(--ix-text-secondary);
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

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

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d1d6;
    transition: .4s;
    border-radius: 34px;
    border: 1px solid transparent;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.cookie-slider {
    background: var(--ix-accent-gradient);
    border-color: transparent;
}

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

input:disabled+.cookie-slider {
    background-color: #e5e5ea;
    opacity: 0.6;
    cursor: not-allowed;
    border-color: rgba(0, 0, 0, 0.05);
}

.cookie-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--ix-border);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-cookie {
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-cookie-cancel {
    background: transparent;
    border: 1px solid var(--ix-border);
    color: var(--ix-text);
}

.btn-cookie-cancel:hover {
    background: var(--ix-surface-hover);
    border-color: var(--ix-text);
}

.btn-cookie-save {
    background: var(--ix-accent-gradient);
    color: #fff;
}

.btn-cookie-save:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

@media (max-width: 576px) {
    .cookie-modal-content {
        max-height: 95vh;
        width: 100%;
        border-radius: 12px 12px 0 0;
        margin-top: auto;
    }

    #cookie-consent-modal {
        align-items: flex-end;
        padding: 0;
    }

    .cookie-modal-footer {
        flex-direction: column-reverse;
    }

    .btn-cookie {
        width: 100%;
        text-align: center;
    }
}