/* ========== ТОЛЬКО ПЕРЕКЛЮЧАТЕЛИ СОГЛАСИЙ ========== */

.wcn-toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 26px;
    flex-shrink: 0;
}

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

.wcn-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 26px;
    transition: 0.3s;
}

.wcn-toggle-slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.wcn-toggle-switch input:checked + .wcn-toggle-slider {
    background: #4ade80;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.5);
}

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

.wcn-toggle-switch input:disabled + .wcn-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.wcn-consent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}

.wcn-consent-row:last-child {
    border-bottom: none;
}

.wcn-consent-info {
    flex: 1;
}

.wcn-consent-info strong {
    font-size: 14px;
    color: #333;
}

.wcn-consent-info small {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 2px;
}

.wcn-required-badge {
    display: inline-block;
    background: #fee2e2;
    color: #dc3232;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 6px;
}

.wcn-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    z-index: 9999;
    animation: wcn-fadeIn 0.3s ease;
}

.wcn-toast.success {
    background: #22c55e;
}

.wcn-toast.error {
    background: #dc3232;
}

.wcn-toast.warning {
    background: #f59e0b;
}

@keyframes wcn-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Модальное окно */
#wcn-modal {
    backdrop-filter: blur(2px);
}

#wcn-modal .wcn-modal-content {
    animation: wcnModalIn 0.2s ease forwards;
}

@keyframes wcnModalIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wcn-modal-buttons button:hover {
    background: #F3F4F6 !important;
}
